/* https://grabient.com/_gCLgF9gGsgBkf7zgD6gWrgMkf1hf7rf5Yf8W?style=angularSwatches&steps=4&angle=45 */
background: conic-gradient(from 45deg, #1f9e74 0.000deg, #1f9e74 90.000deg, #2a3b30 calc(90.000deg + 0.1deg), #2a3b30 180.000deg, #1a2d52 calc(180.000deg + 0.1deg), #1a2d52 270.000deg, #2f93a2 calc(270.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/_gCLgF9gGsgBkf7zgD6gWrgMkf1hf7rf5Yf8W?style=angularSwatches&steps=4&angle=45 -->
<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 716.228,-116.228
A 447.214,447.214 0 0 1 716.228,516.228
Z
" fill="#1f9e74" fill-opacity="1.000" /><path d="
M 400.000,200.000
L 716.228,516.228
A 447.214,447.214 0 0 1 83.772,516.228
Z
" fill="#2a3b30" fill-opacity="1.000" /><path d="
M 400.000,200.000
L 83.772,516.228
A 447.214,447.214 0 0 1 83.772,-116.228
Z
" fill="#1a2d52" fill-opacity="1.000" /><path d="
M 400.000,200.000
L 83.772,-116.228
A 447.214,447.214 0 0 1 716.228,-116.228
Z
" fill="#2f93a2" fill-opacity="1.000" /></g>
</svg>
["#1f9e74", "#2a3b30", "#1a2d52", "#2f93a2"]
// https://grabient.com/_gCLgF9gGsgBkf7zgD6gWrgMkf1hf7rf5Yf8W?style=angularSwatches&steps=4&angle=45
// cosine gradient palette — https://iquilezles.org/articles/palettes/
const float STEPS = 4.0;
const float ANGLE = 45.0;
vec3 palette(float t) {
vec3 a = vec3(0.139, 0.381, 0.428);
vec3 b = vec3(0.100, -0.269, 0.250);
vec3 c = vec3(1.451, 0.804, -0.671);
vec3 d = vec3(-0.277, -0.424, -0.234);
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.139, 0.381, 0.428],
[0.100, -0.269, 0.250],
[1.451, 0.804, -0.671],
[-0.277, -0.424, -0.234]
]