/* https://grabient.com/_ff9gMNgNHgtogCugFqgBigGdgBlgOhgBGgLKgAvovoh7?style=linearGradient&steps=34&angle=90 */
background: linear-gradient(90deg, #b6d7ff 0.000%, #b2d3ff 3.030%, #add0ff 6.061%, #a8cdff 9.091%, #a2c9ff 12.121%, #9dc6ff 15.152%, #97c2ff 18.182%, #91bfff 21.212%, #8bbbff 24.242%, #84b8ff 27.273%, #7eb5ff 30.303%, #77b2ff 33.333%, #70afff 36.364%, #68acff 39.394%, #61a9ff 42.424%, #59a7ff 45.455%, #51a4ff 48.485%, #48a2ff 51.515%, #40a1ff 54.545%, #379fff 57.576%, #2f9eff 60.606%, #259cff 63.636%, #1c9cff 66.667%, #139bff 69.697%, #099bff 72.727%, #009bff 75.758%, #009bff 78.788%, #009cff 81.818%, #009cff 84.848%, #009dff 87.879%, #009fff 90.909%, #00a0ff 93.939%, #00a2ff 96.970%, #00a4ff 100.000%);
<svg xmlns="http://www.w3.org/2000/svg" width="800" height="400" viewBox="0 0 800 400" preserveAspectRatio="none">
<!-- https://grabient.com/_ff9gMNgNHgtogCugFqgBigGdgBlgOhgBGgLKgAvovoh7?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="#b6d7ff" /><stop offset="0.030" stop-color="#b2d3ff" /><stop offset="0.061" stop-color="#add0ff" /><stop offset="0.091" stop-color="#a8cdff" /><stop offset="0.121" stop-color="#a2c9ff" /><stop offset="0.152" stop-color="#9dc6ff" /><stop offset="0.182" stop-color="#97c2ff" /><stop offset="0.212" stop-color="#91bfff" /><stop offset="0.242" stop-color="#8bbbff" /><stop offset="0.273" stop-color="#84b8ff" /><stop offset="0.303" stop-color="#7eb5ff" /><stop offset="0.333" stop-color="#77b2ff" /><stop offset="0.364" stop-color="#70afff" /><stop offset="0.394" stop-color="#68acff" /><stop offset="0.424" stop-color="#61a9ff" /><stop offset="0.455" stop-color="#59a7ff" /><stop offset="0.485" stop-color="#51a4ff" /><stop offset="0.515" stop-color="#48a2ff" /><stop offset="0.545" stop-color="#40a1ff" /><stop offset="0.576" stop-color="#379fff" /><stop offset="0.606" stop-color="#2f9eff" /><stop offset="0.636" stop-color="#259cff" /><stop offset="0.667" stop-color="#1c9cff" /><stop offset="0.697" stop-color="#139bff" /><stop offset="0.727" stop-color="#099bff" /><stop offset="0.758" stop-color="#009bff" /><stop offset="0.788" stop-color="#009bff" /><stop offset="0.818" stop-color="#009cff" /><stop offset="0.848" stop-color="#009cff" /><stop offset="0.879" stop-color="#009dff" /><stop offset="0.909" stop-color="#009fff" /><stop offset="0.939" stop-color="#00a0ff" /><stop offset="0.970" stop-color="#00a2ff" /><stop offset="1.000" stop-color="#00a4ff" />
</linearGradient>
</defs>
<rect x="0" y="0" width="800" height="400" fill="url(#gradient)" />
</svg>
["#b6d7ff", "#b2d3ff", "#add0ff", "#a8cdff", "#a2c9ff", "#9dc6ff", "#97c2ff", "#91bfff", "#8bbbff", "#84b8ff", "#7eb5ff", "#77b2ff", "#70afff", "#68acff", "#61a9ff", "#59a7ff", "#51a4ff", "#48a2ff", "#40a1ff", "#379fff", "#2f9eff", "#259cff", "#1c9cff", "#139bff", "#099bff", "#009bff", "#009bff", "#009cff", "#009cff", "#009dff", "#009fff", "#00a0ff", "#00a2ff", "#00a4ff"]
// https://grabient.com/_ff9gMNgNHgtogCugFqgBigGdgBlgOhgBGgLKgAvovoh7?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(-2.051, 0.781, 0.839);
vec3 b = vec3(2.920, 0.174, 0.362);
vec3 c = vec3(0.098, 0.413, 0.101);
vec3 d = vec3(1.052, 0.193, 0.837);
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);
}
[
[-2.051, 0.781, 0.839],
[2.920, 0.174, 0.362],
[0.098, 0.413, 0.101],
[1.052, 0.193, 0.837]
]