/* https://grabient.com/_gEYgLGfwpgEogLGgc8gEFgB4gBlgJrgIngNFdKuu5rgG?style=linearGradient&steps=34&angle=0 */
background: linear-gradient(0deg, #000000 0.000%, #000000 3.030%, #000000 6.061%, #000000 9.091%, #000000 12.121%, #000004 15.152%, #04000e 18.182%, #0a0018 21.212%, #100021 24.242%, #15042b 27.273%, #1b0833 30.303%, #210c3c 33.333%, #271144 36.364%, #2c164c 39.394%, #321a54 42.424%, #371f5b 45.455%, #3c2561 48.485%, #412a68 51.515%, #462f6e 54.545%, #4a3573 57.576%, #4e3b78 60.606%, #52407d 63.636%, #554681 66.667%, #584c85 69.697%, #5b5288 72.727%, #5d588b 75.758%, #5e5f8e 78.788%, #5f6590 81.818%, #606b91 84.848%, #607293 87.879%, #607893 90.909%, #5f7e94 93.939%, #5e8594 96.970%, #5c8b93 100.000%);
<svg xmlns="http://www.w3.org/2000/svg" width="800" height="400" viewBox="0 0 800 400" preserveAspectRatio="none">
<!-- https://grabient.com/_gEYgLGfwpgEogLGgc8gEFgB4gBlgJrgIngNFdKuu5rgG?style=linearGradient&steps=34&angle=0 -->
<defs>
<linearGradient id="gradient" x1="0.500" y1="1.000" x2="0.500" y2="0.000">
<stop offset="0.000" stop-color="#000000" /><stop offset="0.030" stop-color="#000000" /><stop offset="0.061" stop-color="#000000" /><stop offset="0.091" stop-color="#000000" /><stop offset="0.121" stop-color="#000000" /><stop offset="0.152" stop-color="#000004" /><stop offset="0.182" stop-color="#04000e" /><stop offset="0.212" stop-color="#0a0018" /><stop offset="0.242" stop-color="#100021" /><stop offset="0.273" stop-color="#15042b" /><stop offset="0.303" stop-color="#1b0833" /><stop offset="0.333" stop-color="#210c3c" /><stop offset="0.364" stop-color="#271144" /><stop offset="0.394" stop-color="#2c164c" /><stop offset="0.424" stop-color="#321a54" /><stop offset="0.455" stop-color="#371f5b" /><stop offset="0.485" stop-color="#3c2561" /><stop offset="0.515" stop-color="#412a68" /><stop offset="0.545" stop-color="#462f6e" /><stop offset="0.576" stop-color="#4a3573" /><stop offset="0.606" stop-color="#4e3b78" /><stop offset="0.636" stop-color="#52407d" /><stop offset="0.667" stop-color="#554681" /><stop offset="0.697" stop-color="#584c85" /><stop offset="0.727" stop-color="#5b5288" /><stop offset="0.758" stop-color="#5d588b" /><stop offset="0.788" stop-color="#5e5f8e" /><stop offset="0.818" stop-color="#5f6590" /><stop offset="0.848" stop-color="#606b91" /><stop offset="0.879" stop-color="#607293" /><stop offset="0.909" stop-color="#607893" /><stop offset="0.939" stop-color="#5f7e94" /><stop offset="0.970" stop-color="#5e8594" /><stop offset="1.000" stop-color="#5c8b93" />
</linearGradient>
</defs>
<rect x="0" y="0" width="800" height="400" fill="url(#gradient)" />
</svg>
["#000000", "#000000", "#000000", "#000000", "#000000", "#000004", "#04000e", "#0a0018", "#100021", "#15042b", "#1b0833", "#210c3c", "#271144", "#2c164c", "#321a54", "#371f5b", "#3c2561", "#412a68", "#462f6e", "#4a3573", "#4e3b78", "#52407d", "#554681", "#584c85", "#5b5288", "#5d588b", "#5e5f8e", "#5f6590", "#606b91", "#607293", "#607893", "#5f7e94", "#5e8594", "#5c8b93"]
// https://grabient.com/_gEYgLGfwpgEogLGgc8gEFgB4gBlgJrgIngNFdKuu5rgG?style=linearGradient&steps=34&angle=0
// cosine gradient palette — https://iquilezles.org/articles/palettes/
const float STEPS = 34.0;
const float ANGLE = 0.0;
vec3 palette(float t) {
vec3 a = vec3(0.098, 0.528, -1.165);
vec3 b = vec3(0.279, 0.669, 1.745);
vec3 c = vec3(0.429, 0.197, 0.166);
vec3 d = vec3(0.625, 0.557, 0.843);
return a + b * cos(6.283185 * (c * t + d));
}
// N stops sampled from the palette, blended like the CSS gradient
vec3 stops(float t) {
float n = STEPS - 1.0;
float x = clamp(t, 0.0, 1.0) * n;
return mix(palette(floor(x) / n), palette(min(floor(x) + 1.0, n) / n), fract(x));
}
void mainImage(out vec4 fragColor, in vec2 fragCoord) {
vec2 p = fragCoord - 0.5 * iResolution.xy;
// CSS angle: 0 = up, clockwise; span = CSS gradient-line length
vec2 dir = vec2(sin(radians(ANGLE)), cos(radians(ANGLE)));
float len = abs(iResolution.x * dir.x) + abs(iResolution.y * dir.y);
float t = dot(p, dir) / len + 0.5;
fragColor = vec4(stops(t), 1.0);
}
[
[0.098, 0.528, -1.165],
[0.279, 0.669, 1.745],
[0.429, 0.197, 0.166],
[0.625, 0.557, 0.843]
]