/* https://grabient.com/_gH9gHCgGcgEvgCcgCzgZwgfvgXJgFDgBYgBx?style=linearSwatches&steps=11&angle=45 */
background: linear-gradient(45deg, #60958c 0.000%, #60958c 9.091%, #356966 calc(9.091% + 1px), #356966 18.182%, #554b43 calc(18.182% + 1px), #554b43 27.273%, #a2663e calc(27.273% + 1px), #a2663e 36.364%, #cf935c calc(36.364% + 1px), #cf935c 45.455%, #b09285 calc(45.455% + 1px), #b09285 54.545%, #656597 calc(54.545% + 1px), #656597 63.636%, #354b84 calc(63.636% + 1px), #354b84 72.727%, #516a5c calc(72.727% + 1px), #516a5c 81.818%, #9d953e calc(81.818% + 1px), #9d953e 90.909%, #ce9043 calc(90.909% + 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/_gH9gHCgGcgEvgCcgCzgZwgfvgXJgFDgBYgBx?style=linearSwatches&steps=11&angle=45 -->
<defs>
<clipPath id="bounds">
<rect x="0" y="0" width="800" height="400" />
</clipPath>
</defs>
<g clip-path="url(#bounds)"><path d="M 416.228,816.228 L -216.228,183.772 L -161.682,129.227 L 470.773,761.682 Z" fill="#60958c" fill-opacity="1.000" /><path d="M 470.773,761.682 L -161.682,129.227 L -107.137,74.681 L 525.319,707.137 Z" fill="#356966" fill-opacity="1.000" /><path d="M 525.319,707.137 L -107.137,74.681 L -52.591,20.136 L 579.864,652.591 Z" fill="#554b43" fill-opacity="1.000" /><path d="M 579.864,652.591 L -52.591,20.136 L 1.954,-34.410 L 634.410,598.046 Z" fill="#a2663e" fill-opacity="1.000" /><path d="M 634.410,598.046 L 1.954,-34.410 L 56.500,-88.955 L 688.955,543.500 Z" fill="#cf935c" fill-opacity="1.000" /><path d="M 688.955,543.500 L 56.500,-88.955 L 111.045,-143.500 L 743.500,488.955 Z" fill="#b09285" fill-opacity="1.000" /><path d="M 743.500,488.955 L 111.045,-143.500 L 165.590,-198.046 L 798.046,434.410 Z" fill="#656597" fill-opacity="1.000" /><path d="M 798.046,434.410 L 165.590,-198.046 L 220.136,-252.591 L 852.591,379.864 Z" fill="#354b84" fill-opacity="1.000" /><path d="M 852.591,379.864 L 220.136,-252.591 L 274.681,-307.137 L 907.137,325.319 Z" fill="#516a5c" fill-opacity="1.000" /><path d="M 907.137,325.319 L 274.681,-307.137 L 329.227,-361.682 L 961.682,270.773 Z" fill="#9d953e" fill-opacity="1.000" /><path d="M 961.682,270.773 L 329.227,-361.682 L 383.772,-416.228 L 1016.228,216.228 Z" fill="#ce9043" fill-opacity="1.000" /></g>
</svg>
["#60958c", "#356966", "#554b43", "#a2663e", "#cf935c", "#b09285", "#656597", "#354b84", "#516a5c", "#9d953e", "#ce9043"]
// https://grabient.com/_gH9gHCgGcgEvgCcgCzgZwgfvgXJgFDgBYgBx?style=linearSwatches&steps=11&angle=45
// cosine gradient palette — https://iquilezles.org/articles/palettes/
const float STEPS = 11.0;
const float ANGLE = 45.0;
vec3 palette(float t) {
vec3 a = vec3(0.509, 0.450, 0.412);
vec3 b = vec3(0.303, 0.156, 0.179);
vec3 c = vec3(1.648, 2.031, 1.481);
vec3 d = vec3(0.323, 0.088, 0.113);
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.509, 0.450, 0.412],
[0.303, 0.156, 0.179],
[1.648, 2.031, 1.481],
[0.323, 0.088, 0.113]
]