/* https://grabient.com/_gCWgD6gGQgEsgEsgFegLugK8gKKgH0gGQgFe?style=linearGradient&steps=34&angle=90 */
background: linear-gradient(90deg, #000232 0.000%, #000029 3.030%, #000021 6.061%, #00001b 9.091%, #000016 12.121%, #000011 15.152%, #00000f 18.182%, #00000d 21.212%, #06000d 24.242%, #11000e 27.273%, #1b0511 30.303%, #260d14 33.333%, #31151a 36.364%, #3c1d20 39.394%, #462727 42.424%, #50312f 45.455%, #583b39 48.485%, #604542 51.515%, #674f4d 54.545%, #6c5958 57.576%, #706263 60.606%, #726b6e 63.636%, #737379 66.667%, #727a83 69.697%, #70808d 72.727%, #6c8597 75.758%, #6789a0 78.788%, #608ba8 81.818%, #588caf 84.848%, #508cb5 87.879%, #468ab9 90.909%, #3c87bd 93.939%, #3183bf 96.970%, #267ebf 100.000%);
<svg xmlns="http://www.w3.org/2000/svg" width="800" height="400" viewBox="0 0 800 400" preserveAspectRatio="none">
<!-- https://grabient.com/_gCWgD6gGQgEsgEsgFegLugK8gKKgH0gGQgFe?style=linearGradient&steps=34&angle=90 -->
<defs>
<linearGradient id="gradient" x1="0.000" y1="0.500" x2="1.000" y2="0.500">
<stop offset="0.000" stop-color="#000232" /><stop offset="0.030" stop-color="#000029" /><stop offset="0.061" stop-color="#000021" /><stop offset="0.091" stop-color="#00001b" /><stop offset="0.121" stop-color="#000016" /><stop offset="0.152" stop-color="#000011" /><stop offset="0.182" stop-color="#00000f" /><stop offset="0.212" stop-color="#00000d" /><stop offset="0.242" stop-color="#06000d" /><stop offset="0.273" stop-color="#11000e" /><stop offset="0.303" stop-color="#1b0511" /><stop offset="0.333" stop-color="#260d14" /><stop offset="0.364" stop-color="#31151a" /><stop offset="0.394" stop-color="#3c1d20" /><stop offset="0.424" stop-color="#462727" /><stop offset="0.455" stop-color="#50312f" /><stop offset="0.485" stop-color="#583b39" /><stop offset="0.515" stop-color="#604542" /><stop offset="0.545" stop-color="#674f4d" /><stop offset="0.576" stop-color="#6c5958" /><stop offset="0.606" stop-color="#706263" /><stop offset="0.636" stop-color="#726b6e" /><stop offset="0.667" stop-color="#737379" /><stop offset="0.697" stop-color="#727a83" /><stop offset="0.727" stop-color="#70808d" /><stop offset="0.758" stop-color="#6c8597" /><stop offset="0.788" stop-color="#6789a0" /><stop offset="0.818" stop-color="#608ba8" /><stop offset="0.848" stop-color="#588caf" /><stop offset="0.879" stop-color="#508cb5" /><stop offset="0.909" stop-color="#468ab9" /><stop offset="0.939" stop-color="#3c87bd" /><stop offset="0.970" stop-color="#3183bf" /><stop offset="1.000" stop-color="#267ebf" />
</linearGradient>
</defs>
<rect x="0" y="0" width="800" height="400" fill="url(#gradient)" />
</svg>
["#000232", "#000029", "#000021", "#00001b", "#000016", "#000011", "#00000f", "#00000d", "#06000d", "#11000e", "#1b0511", "#260d14", "#31151a", "#3c1d20", "#462727", "#50312f", "#583b39", "#604542", "#674f4d", "#6c5958", "#706263", "#726b6e", "#737379", "#727a83", "#70808d", "#6c8597", "#6789a0", "#608ba8", "#588caf", "#508cb5", "#468ab9", "#3c87bd", "#3183bf", "#267ebf"]
// https://grabient.com/_gCWgD6gGQgEsgEsgFegLugK8gKKgH0gGQgFe?style=linearGradient&steps=34&angle=90
// cosine gradient palette — https://iquilezles.org/articles/palettes/
const float STEPS = 34.0;
const float ANGLE = 90.0;
vec3 palette(float t) {
vec3 a = vec3(0.150, 0.250, 0.400);
vec3 b = vec3(0.300, 0.300, 0.350);
vec3 c = vec3(0.750, 0.700, 0.650);
vec3 d = vec3(0.500, 0.400, 0.350);
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.150, 0.250, 0.400],
[0.300, 0.300, 0.350],
[0.750, 0.700, 0.650],
[0.500, 0.400, 0.350]
]