/* https://grabient.com/_gDggJ0gHlgHyf7Cf7YgCwf5kf7zfwVgUuf2wirugqqZv?style=linearSwatches&steps=5&angle=210 */
background: linear-gradient(210deg, #048961 0.000%, #048961 20.000%, #129e63 calc(20.000% + 1px), #129e63 40.000%, #23bc6b calc(40.000% + 1px), #23bc6b 60.000%, #37dd78 calc(60.000% + 1px), #37dd78 80.000%, #4cfa88 calc(80.000% + 1px) 100.000%);
<svg xmlns="http://www.w3.org/2000/svg" width="800" height="400" viewBox="0 0 800 400" preserveAspectRatio="none">
<!-- https://grabient.com/_gDggJ0gHlgHyf7Cf7YgCwf5kf7zfwVgUuf2wirugqqZv?style=linearSwatches&steps=5&angle=210 -->
<defs>
<clipPath id="bounds">
<rect x="0" y="0" width="800" height="400" />
</clipPath>
</defs>
<g clip-path="url(#bounds)"><path d="M 199.304,-346.812 L 973.901,100.402 L 899.260,229.684 L 124.663,-217.530 Z" fill="#048961" fill-opacity="1.000" /><path d="M 124.663,-217.530 L 899.260,229.684 L 824.619,358.966 L 50.022,-88.248 Z" fill="#129e63" fill-opacity="1.000" /><path d="M 50.022,-88.248 L 824.619,358.966 L 749.978,488.248 L -24.619,41.034 Z" fill="#23bc6b" fill-opacity="1.000" /><path d="M -24.619,41.034 L 749.978,488.248 L 675.337,617.530 L -99.260,170.316 Z" fill="#37dd78" fill-opacity="1.000" /><path d="M -99.260,170.316 L 675.337,617.530 L 600.696,746.812 L -173.901,299.598 Z" fill="#4cfa88" fill-opacity="1.000" /></g>
</svg>
["#048961", "#129e63", "#23bc6b", "#37dd78", "#4cfa88"]
// https://grabient.com/_gDggJ0gHlgHyf7Cf7YgCwf5kf7zfwVgUuf2wirugqqZv?style=linearSwatches&steps=5&angle=210
// cosine gradient palette — https://iquilezles.org/articles/palettes/
const float STEPS = 5.0;
const float ANGLE = 210.0;
vec3 palette(float t) {
vec3 a = vec3(0.395, 0.799, 0.656);
vec3 b = vec3(0.462, -0.295, -0.275);
vec3 c = vec3(0.120, -0.281, -0.183);
vec3 d = vec3(-1.404, 0.925, -0.993);
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;
// CSS angle: 0 = up, clockwise; span = CSS gradient-line length
vec2 dir = vec2(sin(radians(ANGLE)), cos(radians(ANGLE)));
float len = abs(iResolution.x * dir.x) + abs(iResolution.y * dir.y);
float t = dot(p, dir) / len + 0.5;
fragColor = vec4(stops(t), 1.0);
}
[
[0.395, 0.799, 0.656],
[0.462, -0.295, -0.275],
[0.120, -0.281, -0.183],
[-1.404, 0.925, -0.993]
]