/* https://grabient.com/_fwpgLGgEYgc8gLGgEogBlgB4gEFgNFgIngJreluu5rgG?style=linearGradient&steps=34&angle=0 */
background: linear-gradient(0deg, #000000 0.000%, #000002 3.030%, #000307 6.061%, #06060c 9.091%, #100911 12.121%, #1b0c16 15.152%, #25101b 18.182%, #2f1321 21.212%, #391727 24.242%, #421b2d 27.273%, #4b1f32 30.303%, #532438 33.333%, #5b283e 36.364%, #632d44 39.394%, #6b3249 42.424%, #72374e 45.455%, #793c54 48.485%, #7f4158 51.515%, #85475d 54.545%, #8a4c61 57.576%, #8f5265 60.606%, #945869 63.636%, #985e6c 66.667%, #9c636f 69.697%, #9f6a72 72.727%, #a27074 75.758%, #a57675 78.788%, #a77c76 81.818%, #a98277 84.848%, #aa8977 87.879%, #ab8f77 90.909%, #ab9676 93.939%, #ab9c75 96.970%, #aaa273 100.000%);
<svg xmlns="http://www.w3.org/2000/svg" width="800" height="400" viewBox="0 0 800 400" preserveAspectRatio="none">
<!-- https://grabient.com/_fwpgLGgEYgc8gLGgEogBlgB4gEFgNFgIngJreluu5rgG?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="#000002" /><stop offset="0.061" stop-color="#000307" /><stop offset="0.091" stop-color="#06060c" /><stop offset="0.121" stop-color="#100911" /><stop offset="0.152" stop-color="#1b0c16" /><stop offset="0.182" stop-color="#25101b" /><stop offset="0.212" stop-color="#2f1321" /><stop offset="0.242" stop-color="#391727" /><stop offset="0.273" stop-color="#421b2d" /><stop offset="0.303" stop-color="#4b1f32" /><stop offset="0.333" stop-color="#532438" /><stop offset="0.364" stop-color="#5b283e" /><stop offset="0.394" stop-color="#632d44" /><stop offset="0.424" stop-color="#6b3249" /><stop offset="0.455" stop-color="#72374e" /><stop offset="0.485" stop-color="#793c54" /><stop offset="0.515" stop-color="#7f4158" /><stop offset="0.545" stop-color="#85475d" /><stop offset="0.576" stop-color="#8a4c61" /><stop offset="0.606" stop-color="#8f5265" /><stop offset="0.636" stop-color="#945869" /><stop offset="0.667" stop-color="#985e6c" /><stop offset="0.697" stop-color="#9c636f" /><stop offset="0.727" stop-color="#9f6a72" /><stop offset="0.758" stop-color="#a27074" /><stop offset="0.788" stop-color="#a57675" /><stop offset="0.818" stop-color="#a77c76" /><stop offset="0.848" stop-color="#a98277" /><stop offset="0.879" stop-color="#aa8977" /><stop offset="0.909" stop-color="#ab8f77" /><stop offset="0.939" stop-color="#ab9676" /><stop offset="0.970" stop-color="#ab9c75" /><stop offset="1.000" stop-color="#aaa273" />
</linearGradient>
</defs>
<rect x="0" y="0" width="800" height="400" fill="url(#gradient)" />
</svg>
["#000000", "#000002", "#000307", "#06060c", "#100911", "#1b0c16", "#25101b", "#2f1321", "#391727", "#421b2d", "#4b1f32", "#532438", "#5b283e", "#632d44", "#6b3249", "#72374e", "#793c54", "#7f4158", "#85475d", "#8a4c61", "#8f5265", "#945869", "#985e6c", "#9c636f", "#9f6a72", "#a27074", "#a57675", "#a77c76", "#a98277", "#aa8977", "#ab8f77", "#ab9676", "#ab9c75", "#aaa273"]
// https://grabient.com/_fwpgLGgEYgc8gLGgEogBlgB4gEFgNFgIngJreluu5rgG?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(-1.074, 0.619, 0.189);
vec3 b = vec3(1.745, 0.669, 0.279);
vec3 c = vec3(0.166, 0.197, 0.429);
vec3 d = vec3(0.843, 0.557, 0.625);
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);
}
[
[-1.074, 0.619, 0.189],
[1.745, 0.669, 0.279],
[0.166, 0.197, 0.429],
[0.843, 0.557, 0.625]
]