/* https://grabient.com/_gDggKqgHlgAcf7Cf7YgBQgHBgI6gkTguXgQa?style=linearSwatches&steps=7&angle=33 */
background: linear-gradient(33deg, #365f34 0.000%, #365f34 14.286%, #35604d calc(14.286% + 1px), #35604d 28.571%, #357277 calc(28.571% + 1px), #357277 42.857%, #3491a2 calc(42.857% + 1px), #3491a2 57.143%, #34b6c0 calc(57.143% + 1px), #34b6c0 71.429%, #34dac6 calc(71.429% + 1px), #34dac6 85.714%, #33f4b3 calc(85.714% + 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/_gDggKqgHlgAcf7Cf7YgBQgHBgI6gkTguXgQa?style=linearSwatches&steps=7&angle=33 -->
<defs>
<clipPath id="bounds">
<rect x="0" y="0" width="800" height="400" />
</clipPath>
</defs>
<g clip-path="url(#bounds)"><path d="M 565.058,766.953 L -185.072,279.813 L -125.070,187.418 L 625.060,674.558 Z" fill="#365f34" fill-opacity="1.000" /><path d="M 625.060,674.558 L -125.070,187.418 L -65.068,95.023 L 685.062,582.163 Z" fill="#35604d" fill-opacity="1.000" /><path d="M 685.062,582.163 L -65.068,95.023 L -5.066,2.628 L 745.064,489.768 Z" fill="#357277" fill-opacity="1.000" /><path d="M 745.064,489.768 L -5.066,2.628 L 54.936,-89.768 L 805.066,397.372 Z" fill="#3491a2" fill-opacity="1.000" /><path d="M 805.066,397.372 L 54.936,-89.768 L 114.938,-182.163 L 865.068,304.977 Z" fill="#34b6c0" fill-opacity="1.000" /><path d="M 865.068,304.977 L 114.938,-182.163 L 174.940,-274.558 L 925.070,212.582 Z" fill="#34dac6" fill-opacity="1.000" /><path d="M 925.070,212.582 L 174.940,-274.558 L 234.942,-366.953 L 985.072,120.187 Z" fill="#33f4b3" fill-opacity="1.000" /></g>
</svg>
["#365f34", "#35604d", "#357277", "#3491a2", "#34b6c0", "#34dac6", "#33f4b3"]
// https://grabient.com/_gDggKqgHlgAcf7Cf7YgBQgHBgI6gkTguXgQa?style=linearSwatches&steps=7&angle=33
// cosine gradient palette — https://iquilezles.org/articles/palettes/
const float STEPS = 7.0;
const float ANGLE = 33.0;
vec3 palette(float t) {
vec3 a = vec3(0.224, 0.682, 0.485);
vec3 b = vec3(0.028, -0.318, -0.296);
vec3 c = vec3(0.080, 0.449, 0.570);
vec3 d = vec3(2.323, 2.967, 1.050);
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.224, 0.682, 0.485],
[0.028, -0.318, -0.296],
[0.080, 0.449, 0.570],
[2.323, 2.967, 1.050]
]