/* https://grabient.com/_gHlgKqgDgf7Yf7CgAcgI6gHBgBQgQaguXgkT?style=angularSwatches&steps=5&angle=20 */
background: conic-gradient(from 20deg, #345f36 0.000deg, #345f36 72.000deg, #616735 calc(72.000deg + 0.1deg), #616735 144.000deg, #a29134 calc(144.000deg + 0.1deg), #a29134 216.000deg, #c6c934 calc(216.000deg + 0.1deg), #c6c934 288.000deg, #b3f433 calc(288.000deg + 0.1deg) 360.000deg);
<svg xmlns="http://www.w3.org/2000/svg" width="800" height="400" viewBox="0 0 800 400" preserveAspectRatio="none">
<!-- https://grabient.com/_gHlgKqgDgf7Yf7CgAcgI6gHBgBQgQaguXgkT?style=angularSwatches&steps=5&angle=20 -->
<defs>
<clipPath id="squareClip">
<rect x="0" y="0" width="800" height="400" />
</clipPath>
<filter id="antiGap">
<feGaussianBlur in="SourceGraphic" stdDeviation="0.3" />
</filter>
</defs>
<g clip-path="url(#squareClip)" filter="url(#antiGap)" shape-rendering="crispEdges">
<path d="
M 400.000,200.000
L 552.956,-220.244
A 447.214,447.214 0 0 1 846.942,215.608
Z
" fill="#345f36" fill-opacity="1.000" /><path d="
M 400.000,200.000
L 846.942,215.608
A 447.214,447.214 0 0 1 523.269,629.890
Z
" fill="#616735" fill-opacity="1.000" /><path d="
M 400.000,200.000
L 523.269,629.890
A 447.214,447.214 0 0 1 29.243,450.079
Z
" fill="#a29134" fill-opacity="1.000" /><path d="
M 400.000,200.000
L 29.243,450.079
A 447.214,447.214 0 0 1 47.591,-75.332
Z
" fill="#c6c934" fill-opacity="1.000" /><path d="
M 400.000,200.000
L 47.591,-75.332
A 447.214,447.214 0 0 1 552.956,-220.244
Z
" fill="#b3f433" fill-opacity="1.000" /></g>
</svg>
["#345f36", "#616735", "#a29134", "#c6c934", "#b3f433"]
// https://grabient.com/_gHlgKqgDgf7Yf7CgAcgI6gHBgBQgQaguXgkT?style=angularSwatches&steps=5&angle=20
// cosine gradient palette — https://iquilezles.org/articles/palettes/
const float STEPS = 5.0;
const float ANGLE = 20.0;
vec3 palette(float t) {
vec3 a = vec3(0.485, 0.682, 0.224);
vec3 b = vec3(-0.296, -0.318, 0.028);
vec3 c = vec3(0.570, 0.449, 0.080);
vec3 d = vec3(1.050, 2.967, 2.323);
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;
// conic from ANGLE, clockwise from top (CSS convention)
float t = fract((atan(p.x, p.y) - radians(ANGLE)) / 6.283185);
fragColor = vec4(stops(t), 1.0);
}
[
[0.485, 0.682, 0.224],
[-0.296, -0.318, 0.028],
[0.570, 0.449, 0.080],
[1.050, 2.967, 2.323]
]