/* https://grabient.com/_gAFgDAgPOgQKgM5gHggJigJigG0fljf3agRcrdsPoJqF?style=linearGradient&steps=34&angle=90 */
background: linear-gradient(90deg, #ffffff 0.000%, #ffffff 3.030%, #ffffff 6.061%, #ffffff 9.091%, #ffffff 12.121%, #ffffff 15.152%, #ffffff 18.182%, #ffffff 21.212%, #ffffff 24.242%, #ffffff 27.273%, #ffffff 30.303%, #ffffff 33.333%, #ffffff 36.364%, #ffffff 39.394%, #ffffff 42.424%, #fff7ff 45.455%, #ffedff 48.485%, #ffe3ff 51.515%, #ffd9ff 54.545%, #ffcfff 57.576%, #ffc5ff 60.606%, #ffbcff 63.636%, #ffb2ff 66.667%, #ffa9ff 69.697%, #ffa0ff 72.727%, #ff97ff 75.758%, #f98fff 78.788%, #ed87ff 81.818%, #e17fff 84.848%, #d478ff 87.879%, #c871ff 90.909%, #bb6bff 93.939%, #af65ff 96.970%, #a35fff 100.000%);
<svg xmlns="http://www.w3.org/2000/svg" width="800" height="400" viewBox="0 0 800 400" preserveAspectRatio="none">
<!-- https://grabient.com/_gAFgDAgPOgQKgM5gHggJigJigG0fljf3agRcrdsPoJqF?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="#ffffff" /><stop offset="0.030" stop-color="#ffffff" /><stop offset="0.061" stop-color="#ffffff" /><stop offset="0.091" stop-color="#ffffff" /><stop offset="0.121" stop-color="#ffffff" /><stop offset="0.152" stop-color="#ffffff" /><stop offset="0.182" stop-color="#ffffff" /><stop offset="0.212" stop-color="#ffffff" /><stop offset="0.242" stop-color="#ffffff" /><stop offset="0.273" stop-color="#ffffff" /><stop offset="0.303" stop-color="#ffffff" /><stop offset="0.333" stop-color="#ffffff" /><stop offset="0.364" stop-color="#ffffff" /><stop offset="0.394" stop-color="#ffffff" /><stop offset="0.424" stop-color="#ffffff" /><stop offset="0.455" stop-color="#fff7ff" /><stop offset="0.485" stop-color="#ffedff" /><stop offset="0.515" stop-color="#ffe3ff" /><stop offset="0.545" stop-color="#ffd9ff" /><stop offset="0.576" stop-color="#ffcfff" /><stop offset="0.606" stop-color="#ffc5ff" /><stop offset="0.636" stop-color="#ffbcff" /><stop offset="0.667" stop-color="#ffb2ff" /><stop offset="0.697" stop-color="#ffa9ff" /><stop offset="0.727" stop-color="#ffa0ff" /><stop offset="0.758" stop-color="#ff97ff" /><stop offset="0.788" stop-color="#f98fff" /><stop offset="0.818" stop-color="#ed87ff" /><stop offset="0.848" stop-color="#e17fff" /><stop offset="0.879" stop-color="#d478ff" /><stop offset="0.909" stop-color="#c871ff" /><stop offset="0.939" stop-color="#bb6bff" /><stop offset="0.970" stop-color="#af65ff" /><stop offset="1.000" stop-color="#a35fff" />
</linearGradient>
</defs>
<rect x="0" y="0" width="800" height="400" fill="url(#gradient)" />
</svg>
["#ffffff", "#ffffff", "#ffffff", "#ffffff", "#ffffff", "#ffffff", "#ffffff", "#ffffff", "#ffffff", "#ffffff", "#ffffff", "#ffffff", "#ffffff", "#ffffff", "#ffffff", "#fff7ff", "#ffedff", "#ffe3ff", "#ffd9ff", "#ffcfff", "#ffc5ff", "#ffbcff", "#ffb2ff", "#ffa9ff", "#ffa0ff", "#ff97ff", "#f98fff", "#ed87ff", "#e17fff", "#d478ff", "#c871ff", "#bb6bff", "#af65ff", "#a35fff"]
// https://grabient.com/_gAFgDAgPOgQKgM5gHggJigJigG0fljf3agRcrdsPoJqF?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.738, 0.925, 1.707);
vec3 b = vec3(0.810, 0.646, 0.376);
vec3 c = vec3(0.318, 0.318, 0.227);
vec3 d = vec3(-1.048, 0.095, 1.761);
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.738, 0.925, 1.707],
[0.810, 0.646, 0.376],
[0.318, 0.318, 0.227],
[-1.048, 0.095, 1.761]
]