/* https://grabient.com/_gEvgFVgClgIDgLFgFygN1gNggMRgIIgHSgp7?style=angularSwatches&steps=5&angle=90 */
background: conic-gradient(from 90deg, #000004 0.000deg, #000004 72.000deg, #460c6f calc(72.000deg + 0.1deg), #460c6f 144.000deg, #cde87e calc(144.000deg + 0.1deg), #cde87e 216.000deg, #82df1d calc(216.000deg + 0.1deg), #82df1d 288.000deg, #000000 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/_gEvgFVgClgIDgLFgFygN1gNggMRgIIgHSgp7?style=angularSwatches&steps=5&angle=90 -->
<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 847.214,200.000
A 447.214,447.214 0 0 1 538.197,625.326
Z
" fill="#000004" fill-opacity="1.000" /><path d="
M 400.000,200.000
L 538.197,625.326
A 447.214,447.214 0 0 1 38.196,462.866
Z
" fill="#460c6f" fill-opacity="1.000" /><path d="
M 400.000,200.000
L 38.196,462.866
A 447.214,447.214 0 0 1 38.196,-62.866
Z
" fill="#cde87e" fill-opacity="1.000" /><path d="
M 400.000,200.000
L 38.196,-62.866
A 447.214,447.214 0 0 1 538.197,-225.326
Z
" fill="#82df1d" fill-opacity="1.000" /><path d="
M 400.000,200.000
L 538.197,-225.326
A 447.214,447.214 0 0 1 847.214,200.000
Z
" fill="#000000" fill-opacity="1.000" /></g>
</svg>
["#000004", "#460c6f", "#cde87e", "#82df1d", "#000000"]
// https://grabient.com/_gEvgFVgClgIDgLFgFygN1gNggMRgIIgHSgp7?style=angularSwatches&steps=5&angle=90
// cosine gradient palette — https://iquilezles.org/articles/palettes/
const float STEPS = 5.0;
const float ANGLE = 90.0;
vec3 palette(float t) {
vec3 a = vec3(0.303, 0.341, 0.165);
vec3 b = vec3(0.515, 0.709, 0.370);
vec3 c = vec3(0.885, 0.864, 0.785);
vec3 d = vec3(0.520, 0.466, 2.683);
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.303, 0.341, 0.165],
[0.515, 0.709, 0.370],
[0.885, 0.864, 0.785],
[0.520, 0.466, 2.683]
]