/* https://grabient.com/_gFqgLigJ4f7Vf84gH3f6Rf3OgDwftxgLvfnW?style=angularSwatches&steps=6&angle=270 */
background: conic-gradient(from 270deg, #36bc30 0.000deg, #36bc30 60.000deg, #58dd23 calc(60.000deg + 0.1deg), #58dd23 120.000deg, #7aef22 calc(120.000deg + 0.1deg), #7aef22 180.000deg, #96e82c calc(180.000deg + 0.1deg), #96e82c 240.000deg, #a6cc40 calc(240.000deg + 0.1deg), #a6cc40 300.000deg, #a7a95e calc(300.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/_gFqgLigJ4f7Vf84gH3f6Rf3OgDwftxgLvfnW?style=angularSwatches&steps=6&angle=270 -->
<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 -47.214,200.000
A 447.214,447.214 0 0 1 176.393,-187.299
Z
" fill="#36bc30" fill-opacity="1.000" /><path d="
M 400.000,200.000
L 176.393,-187.299
A 447.214,447.214 0 0 1 623.607,-187.299
Z
" fill="#58dd23" fill-opacity="1.000" /><path d="
M 400.000,200.000
L 623.607,-187.299
A 447.214,447.214 0 0 1 847.214,200.000
Z
" fill="#7aef22" fill-opacity="1.000" /><path d="
M 400.000,200.000
L 847.214,200.000
A 447.214,447.214 0 0 1 623.607,587.299
Z
" fill="#96e82c" fill-opacity="1.000" /><path d="
M 400.000,200.000
L 623.607,587.299
A 447.214,447.214 0 0 1 176.393,587.299
Z
" fill="#a6cc40" fill-opacity="1.000" /><path d="
M 400.000,200.000
L 176.393,587.299
A 447.214,447.214 0 0 1 -47.214,200.000
Z
" fill="#a7a95e" fill-opacity="1.000" /></g>
</svg>
["#36bc30", "#58dd23", "#7aef22", "#96e82c", "#a6cc40", "#a7a95e"]
// https://grabient.com/_gFqgLigJ4f7Vf84gH3f6Rf3OgDwftxgLvfnW?style=angularSwatches&steps=6&angle=270
// cosine gradient palette — https://iquilezles.org/articles/palettes/
const float STEPS = 6.0;
const float ANGLE = 270.0;
vec3 palette(float t) {
vec3 a = vec3(0.362, 0.738, 0.632);
vec3 b = vec3(-0.299, -0.200, 0.503);
vec3 c = vec3(-0.367, -0.562, 0.240);
vec3 d = vec3(-1.167, 0.751, -1.578);
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.362, 0.738, 0.632],
[-0.299, -0.200, 0.503],
[-0.367, -0.562, 0.240],
[-1.167, 0.751, -1.578]
]