/* https://grabient.com/_gL2gGwgMuf0JgQVf5Gf8Sf-HgE-f26f0Ff-MgAvo1fgA?style=linearSwatches&steps=13&angle=33 */
background: linear-gradient(33deg, #ff847b 0.000%, #ff847b 7.692%, #ff9b6d calc(7.692% + 1px), #ff9b6d 15.385%, #ffb263 calc(15.385% + 1px), #ffb263 23.077%, #ffc85f calc(23.077% + 1px), #ffc85f 30.769%, #ffdd61 calc(30.769% + 1px), #ffdd61 38.462%, #e8f268 calc(38.462% + 1px), #e8f268 46.154%, #c7ff75 calc(46.154% + 1px), #c7ff75 53.846%, #a6ff87 calc(53.846% + 1px), #a6ff87 61.538%, #85ff9d calc(61.538% + 1px), #85ff9d 69.231%, #67ffb5 calc(69.231% + 1px), #67ffb5 76.923%, #4bffce calc(76.923% + 1px), #4bffce 84.615%, #33ffe8 calc(84.615% + 1px), #33ffe8 92.308%, #1effff calc(92.308% + 1px) 100.000%);
<svg xmlns="http://www.w3.org/2000/svg" width="800" height="400" viewBox="0 0 800 400" preserveAspectRatio="none">
<!-- https://grabient.com/_gL2gGwgMuf0JgQVf5Gf8Sf-HgE-f26f0Ff-MgAvo1fgA?style=linearSwatches&steps=13&angle=33 -->
<defs>
<clipPath id="bounds">
<rect x="0" y="0" width="800" height="400" />
</clipPath>
</defs>
<g clip-path="url(#bounds)"><path d="M 565.058,766.953 L -185.072,279.813 L -152.763,230.062 L 597.366,717.202 Z" fill="#ff847b" fill-opacity="1.000" /><path d="M 597.366,717.202 L -152.763,230.062 L -120.454,180.310 L 629.675,667.450 Z" fill="#ff9b6d" fill-opacity="1.000" /><path d="M 629.675,667.450 L -120.454,180.310 L -88.146,130.559 L 661.984,617.699 Z" fill="#ffb263" fill-opacity="1.000" /><path d="M 661.984,617.699 L -88.146,130.559 L -55.837,80.808 L 694.293,567.948 Z" fill="#ffc85f" fill-opacity="1.000" /><path d="M 694.293,567.948 L -55.837,80.808 L -23.528,31.057 L 726.602,518.197 Z" fill="#ffdd61" fill-opacity="1.000" /><path d="M 726.602,518.197 L -23.528,31.057 L 8.781,-18.694 L 758.910,468.446 Z" fill="#e8f268" fill-opacity="1.000" /><path d="M 758.910,468.446 L 8.781,-18.694 L 41.090,-68.446 L 791.219,418.694 Z" fill="#c7ff75" fill-opacity="1.000" /><path d="M 791.219,418.694 L 41.090,-68.446 L 73.398,-118.197 L 823.528,368.943 Z" fill="#a6ff87" fill-opacity="1.000" /><path d="M 823.528,368.943 L 73.398,-118.197 L 105.707,-167.948 L 855.837,319.192 Z" fill="#85ff9d" fill-opacity="1.000" /><path d="M 855.837,319.192 L 105.707,-167.948 L 138.016,-217.699 L 888.146,269.441 Z" fill="#67ffb5" fill-opacity="1.000" /><path d="M 888.146,269.441 L 138.016,-217.699 L 170.325,-267.450 L 920.454,219.690 Z" fill="#4bffce" fill-opacity="1.000" /><path d="M 920.454,219.690 L 170.325,-267.450 L 202.634,-317.202 L 952.763,169.938 Z" fill="#33ffe8" fill-opacity="1.000" /><path d="M 952.763,169.938 L 202.634,-317.202 L 234.942,-366.953 L 985.072,120.187 Z" fill="#1effff" fill-opacity="1.000" /></g>
</svg>
["#ff847b", "#ff9b6d", "#ffb263", "#ffc85f", "#ffdd61", "#e8f268", "#c7ff75", "#a6ff87", "#85ff9d", "#67ffb5", "#4bffce", "#33ffe8", "#1effff"]
// https://grabient.com/_gL2gGwgMuf0JgQVf5Gf8Sf-HgE-f26f0Ff-MgAvo1fgA?style=linearSwatches&steps=13&angle=33
// cosine gradient palette — https://iquilezles.org/articles/palettes/
const float STEPS = 13.0;
const float ANGLE = 33.0;
vec3 palette(float t) {
vec3 a = vec3(0.758, 0.432, 0.814);
vec3 b = vec3(-0.759, 1.045, -0.442);
vec3 c = vec3(-0.327, -0.166, 0.437);
vec3 d = vec3(-0.582, -0.763, -0.116);
return a + b * cos(6.283185 * (c * t + d));
}
// N hard swatches sampled from the palette
vec3 stops(float t) {
float i = min(floor(clamp(t, 0.0, 1.0) * STEPS), STEPS - 1.0);
return palette(i / (STEPS - 1.0));
}
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.758, 0.432, 0.814],
[-0.759, 1.045, -0.442],
[-0.327, -0.166, 0.437],
[-0.582, -0.763, -0.116]
]