/* https://grabient.com/_gJLgJOgJRgFIgE-gFWgGVgHEgFnhcbgrQh05?style=linearSwatches&steps=13&angle=45 */
background: linear-gradient(45deg, #dea041 0.000%, #dea041 7.692%, #e5b240 calc(7.692% + 1px), #e5b240 15.385%, #e9c343 calc(15.385% + 1px), #e9c343 23.077%, #e9d248 calc(23.077% + 1px), #e9d248 30.769%, #e5dd51 calc(30.769% + 1px), #e5dd51 38.462%, #dee55c calc(38.462% + 1px), #dee55c 46.154%, #d4e769 calc(46.154% + 1px), #d4e769 53.846%, #c6e677 calc(53.846% + 1px), #c6e677 61.538%, #b7e087 calc(61.538% + 1px), #b7e087 69.231%, #a6d697 calc(69.231% + 1px), #a6d697 76.923%, #94c8a8 calc(76.923% + 1px), #94c8a8 84.615%, #83b8b7 calc(84.615% + 1px), #83b8b7 92.308%, #72a6c6 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/_gJLgJOgJRgFIgE-gFWgGVgHEgFnhcbgrQh05?style=linearSwatches&steps=13&angle=45 -->
<defs>
<clipPath id="bounds">
<rect x="0" y="0" width="800" height="400" />
</clipPath>
</defs>
<g clip-path="url(#bounds)"><path d="M 416.228,816.228 L -216.228,183.772 L -170.074,137.618 L 462.382,770.074 Z" fill="#dea041" fill-opacity="1.000" /><path d="M 462.382,770.074 L -170.074,137.618 L -123.920,91.465 L 508.535,723.920 Z" fill="#e5b240" fill-opacity="1.000" /><path d="M 508.535,723.920 L -123.920,91.465 L -77.766,45.311 L 554.689,677.766 Z" fill="#e9c343" fill-opacity="1.000" /><path d="M 554.689,677.766 L -77.766,45.311 L -31.612,-0.843 L 600.843,631.612 Z" fill="#e9d248" fill-opacity="1.000" /><path d="M 600.843,631.612 L -31.612,-0.843 L 14.541,-46.997 L 646.997,585.459 Z" fill="#e5dd51" fill-opacity="1.000" /><path d="M 646.997,585.459 L 14.541,-46.997 L 60.695,-93.151 L 693.151,539.305 Z" fill="#dee55c" fill-opacity="1.000" /><path d="M 693.151,539.305 L 60.695,-93.151 L 106.849,-139.305 L 739.305,493.151 Z" fill="#d4e769" fill-opacity="1.000" /><path d="M 739.305,493.151 L 106.849,-139.305 L 153.003,-185.459 L 785.459,446.997 Z" fill="#c6e677" fill-opacity="1.000" /><path d="M 785.459,446.997 L 153.003,-185.459 L 199.157,-231.612 L 831.612,400.843 Z" fill="#b7e087" fill-opacity="1.000" /><path d="M 831.612,400.843 L 199.157,-231.612 L 245.311,-277.766 L 877.766,354.689 Z" fill="#a6d697" fill-opacity="1.000" /><path d="M 877.766,354.689 L 245.311,-277.766 L 291.465,-323.920 L 923.920,308.535 Z" fill="#94c8a8" fill-opacity="1.000" /><path d="M 923.920,308.535 L 291.465,-323.920 L 337.618,-370.074 L 970.074,262.382 Z" fill="#83b8b7" fill-opacity="1.000" /><path d="M 970.074,262.382 L 337.618,-370.074 L 383.772,-416.228 L 1016.228,216.228 Z" fill="#72a6c6" fill-opacity="1.000" /></g>
</svg>
["#dea041", "#e5b240", "#e9c343", "#e9d248", "#e5dd51", "#dee55c", "#d4e769", "#c6e677", "#b7e087", "#a6d697", "#94c8a8", "#83b8b7", "#72a6c6"]
// https://grabient.com/_gJLgJOgJRgFIgE-gFWgGVgHEgFnhcbgrQh05?style=linearSwatches&steps=13&angle=45
// cosine gradient palette — https://iquilezles.org/articles/palettes/
const float STEPS = 13.0;
const float ANGLE = 45.0;
vec3 palette(float t) {
vec3 a = vec3(0.587, 0.590, 0.593);
vec3 b = vec3(0.328, 0.318, 0.342);
vec3 c = vec3(0.405, 0.452, 0.359);
vec3 d = vec3(5.915, 2.768, 7.481);
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.587, 0.590, 0.593],
[0.328, 0.318, 0.342],
[0.405, 0.452, 0.359],
[5.915, 2.768, 7.481]
]