/* https://grabient.com/_gF5gIygPdf9ygI2f9Tf8If8yf4sf69f-egA_?style=linearGradient&steps=26&angle=240 */
background: linear-gradient(240deg, #70ffd3 0.000%, #72ffd2 4.000%, #74fcd1 8.000%, #76f7d0 12.000%, #78f1d0 16.000%, #79ecd1 20.000%, #7be6d2 24.000%, #7ce0d4 28.000%, #7edad6 32.000%, #7fd3d9 36.000%, #80ccdd 40.000%, #81c6e1 44.000%, #82bfe5 48.000%, #83b7ea 52.000%, #83b0ee 56.000%, #84a9f3 60.000%, #84a2f8 64.000%, #849afe 68.000%, #8493ff 72.000%, #848bff 76.000%, #8484ff 80.000%, #847cff 84.000%, #8375ff 88.000%, #826eff 92.000%, #8266ff 96.000%, #815fff 100.000%);
<svg xmlns="http://www.w3.org/2000/svg" width="800" height="400" viewBox="0 0 800 400" preserveAspectRatio="none">
<!-- https://grabient.com/_gF5gIygPdf9ygI2f9Tf8If8yf4sf69f-egA_?style=linearGradient&steps=26&angle=240 -->
<defs>
<linearGradient id="gradient" x1="0.933" y1="0.250" x2="0.067" y2="0.750">
<stop offset="0.000" stop-color="#70ffd3" /><stop offset="0.040" stop-color="#72ffd2" /><stop offset="0.080" stop-color="#74fcd1" /><stop offset="0.120" stop-color="#76f7d0" /><stop offset="0.160" stop-color="#78f1d0" /><stop offset="0.200" stop-color="#79ecd1" /><stop offset="0.240" stop-color="#7be6d2" /><stop offset="0.280" stop-color="#7ce0d4" /><stop offset="0.320" stop-color="#7edad6" /><stop offset="0.360" stop-color="#7fd3d9" /><stop offset="0.400" stop-color="#80ccdd" /><stop offset="0.440" stop-color="#81c6e1" /><stop offset="0.480" stop-color="#82bfe5" /><stop offset="0.520" stop-color="#83b7ea" /><stop offset="0.560" stop-color="#83b0ee" /><stop offset="0.600" stop-color="#84a9f3" /><stop offset="0.640" stop-color="#84a2f8" /><stop offset="0.680" stop-color="#849afe" /><stop offset="0.720" stop-color="#8493ff" /><stop offset="0.760" stop-color="#848bff" /><stop offset="0.800" stop-color="#8484ff" /><stop offset="0.840" stop-color="#847cff" /><stop offset="0.880" stop-color="#8375ff" /><stop offset="0.920" stop-color="#826eff" /><stop offset="0.960" stop-color="#8266ff" /><stop offset="1.000" stop-color="#815fff" />
</linearGradient>
</defs>
<rect x="0" y="0" width="800" height="400" fill="url(#gradient)" />
</svg>
["#70ffd3", "#72ffd2", "#74fcd1", "#76f7d0", "#78f1d0", "#79ecd1", "#7be6d2", "#7ce0d4", "#7edad6", "#7fd3d9", "#80ccdd", "#81c6e1", "#82bfe5", "#83b7ea", "#83b0ee", "#84a9f3", "#84a2f8", "#849afe", "#8493ff", "#848bff", "#8484ff", "#847cff", "#8375ff", "#826eff", "#8266ff", "#815fff"]
// https://grabient.com/_gF5gIygPdf9ygI2f9Tf8If8yf4sf69f-egA_?style=linearGradient&steps=26&angle=240
// cosine gradient palette — https://iquilezles.org/articles/palettes/
const float STEPS = 26.0;
const float ANGLE = 240.0;
vec3 palette(float t) {
vec3 a = vec3(0.377, 0.562, 0.989);
vec3 b = vec3(-0.142, 0.566, -0.173);
vec3 c = vec3(-0.248, -0.206, -0.468);
vec3 d = vec3(-0.323, -0.098, 0.063);
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.377, 0.562, 0.989],
[-0.142, 0.566, -0.173],
[-0.248, -0.206, -0.468],
[-0.323, -0.098, 0.063]
]