/* https://grabient.com/_gQsgHvhbIgUtgFBhY9gBggG1gBlgEfgPogG6?style=angularSwatches&steps=8&angle=0 */
background: conic-gradient(from 0deg, #c2d083 0.000deg, #c2d083 45.000deg, #a6ca5a calc(45.000deg + 0.1deg), #a6ca5a 90.000deg, #8bb83c calc(90.000deg + 0.1deg), #8bb83c 135.000deg, #719e2a calc(135.000deg + 0.1deg), #719e2a 180.000deg, #587e23 calc(180.000deg + 0.1deg), #587e23 225.000deg, #405f29 calc(225.000deg + 0.1deg), #405f29 270.000deg, #2a453b calc(270.000deg + 0.1deg), #2a453b 315.000deg, #163358 calc(315.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/_gQsgHvhbIgUtgFBhY9gBggG1gBlgEfgPogG6?style=angularSwatches&steps=8&angle=0 -->
<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 400.000,-247.214
A 447.214,447.214 0 0 1 716.228,-116.228
Z
" fill="#c2d083" fill-opacity="1.000" /><path d="
M 400.000,200.000
L 716.228,-116.228
A 447.214,447.214 0 0 1 847.214,200.000
Z
" fill="#a6ca5a" fill-opacity="1.000" /><path d="
M 400.000,200.000
L 847.214,200.000
A 447.214,447.214 0 0 1 716.228,516.228
Z
" fill="#8bb83c" fill-opacity="1.000" /><path d="
M 400.000,200.000
L 716.228,516.228
A 447.214,447.214 0 0 1 400.000,647.214
Z
" fill="#719e2a" fill-opacity="1.000" /><path d="
M 400.000,200.000
L 400.000,647.214
A 447.214,447.214 0 0 1 83.772,516.228
Z
" fill="#587e23" fill-opacity="1.000" /><path d="
M 400.000,200.000
L 83.772,516.228
A 447.214,447.214 0 0 1 -47.214,200.000
Z
" fill="#405f29" fill-opacity="1.000" /><path d="
M 400.000,200.000
L -47.214,200.000
A 447.214,447.214 0 0 1 83.772,-116.228
Z
" fill="#2a453b" fill-opacity="1.000" /><path d="
M 400.000,200.000
L 83.772,-116.228
A 447.214,447.214 0 0 1 400.000,-247.214
Z
" fill="#163358" fill-opacity="1.000" /></g>
</svg>
["#c2d083", "#a6ca5a", "#8bb83c", "#719e2a", "#587e23", "#405f29", "#2a453b", "#163358"]
// https://grabient.com/_gQsgHvhbIgUtgFBhY9gBggG1gBlgEfgPogG6?style=angularSwatches&steps=8&angle=0
// cosine gradient palette — https://iquilezles.org/articles/palettes/
const float STEPS = 8.0;
const float ANGLE = 0.0;
vec3 palette(float t) {
vec3 a = vec3(1.068, 0.495, 5.832);
vec3 b = vec3(1.325, 0.321, 5.693);
vec3 c = vec3(0.096, 0.437, 0.101);
vec3 d = vec3(0.287, 1.000, 0.442);
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);
}
[
[1.068, 0.495, 5.832],
[1.325, 0.321, 5.693],
[0.096, 0.437, 0.101],
[0.287, 1.000, 0.442]
]