/* https://grabient.com/_gIVgPdgDbgOUgLegDFgEggDZgCdhJug3egoE?style=linearSwatches&steps=7&angle=33 */
background: linear-gradient(33deg, #594a0a 0.000%, #594a0a 14.286%, #9f5c0d calc(14.286% + 1px), #9f5c0d 28.571%, #e37612 calc(28.571% + 1px), #e37612 42.857%, #ff9618 calc(42.857% + 1px), #ff9618 57.143%, #ffbc1f calc(57.143% + 1px), #ffbc1f 71.429%, #ffe627 calc(71.429% + 1px), #ffe627 85.714%, #ffff2f calc(85.714% + 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/_gIVgPdgDbgOUgLegDFgEggDZgCdhJug3egoE?style=linearSwatches&steps=7&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 -125.070,187.418 L 625.060,674.558 Z" fill="#594a0a" fill-opacity="1.000" /><path d="M 625.060,674.558 L -125.070,187.418 L -65.068,95.023 L 685.062,582.163 Z" fill="#9f5c0d" fill-opacity="1.000" /><path d="M 685.062,582.163 L -65.068,95.023 L -5.066,2.628 L 745.064,489.768 Z" fill="#e37612" fill-opacity="1.000" /><path d="M 745.064,489.768 L -5.066,2.628 L 54.936,-89.768 L 805.066,397.372 Z" fill="#ff9618" fill-opacity="1.000" /><path d="M 805.066,397.372 L 54.936,-89.768 L 114.938,-182.163 L 865.068,304.977 Z" fill="#ffbc1f" fill-opacity="1.000" /><path d="M 865.068,304.977 L 114.938,-182.163 L 174.940,-274.558 L 925.070,212.582 Z" fill="#ffe627" fill-opacity="1.000" /><path d="M 925.070,212.582 L 174.940,-274.558 L 234.942,-366.953 L 985.072,120.187 Z" fill="#ffff2f" fill-opacity="1.000" /></g>
</svg>
["#594a0a", "#9f5c0d", "#e37612", "#ff9618", "#ffbc1f", "#ffe627", "#ffff2f"]
// https://grabient.com/_gIVgPdgDbgOUgLegDFgEggDZgCdhJug3egoE?style=linearSwatches&steps=7&angle=33
// cosine gradient palette — https://iquilezles.org/articles/palettes/
const float STEPS = 7.0;
const float ANGLE = 33.0;
vec3 palette(float t) {
vec3 a = vec3(0.533, 0.989, 0.219);
vec3 b = vec3(0.916, 0.734, 0.197);
vec3 c = vec3(0.288, 0.217, 0.157);
vec3 d = vec3(4.718, 3.550, 2.564);
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.533, 0.989, 0.219],
[0.916, 0.734, 0.197],
[0.288, 0.217, 0.157],
[4.718, 3.550, 2.564]
]