/* https://grabient.com/_gIigIUgGagIZgGpgDWgTfgTVgZGgMhgCPgDt?style=linearSwatches&steps=11&angle=45 */
background: linear-gradient(45deg, #b6cb6d 0.000%, #b6cb6d 9.091%, #ff7c3d calc(9.091% + 1px), #ff7c3d 18.182%, #ff3436 calc(18.182% + 1px), #ff3436 27.273%, #c91c5e calc(27.273% + 1px), #c91c5e 36.364%, #614190 calc(36.364% + 1px), #614190 45.455%, #118f9d calc(45.455% + 1px), #118f9d 54.545%, #09d979 calc(54.545% + 1px), #09d979 63.636%, #4cf445 calc(63.636% + 1px), #4cf445 72.727%, #b4d132 calc(72.727% + 1px), #b4d132 81.818%, #ff8352 calc(81.818% + 1px), #ff8352 90.909%, #ff3987 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/_gIigIUgGagIZgGpgDWgTfgTVgZGgMhgCPgDt?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="#b6cb6d" 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="#ff7c3d" 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="#ff3436" 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="#c91c5e" 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="#614190" 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="#118f9d" 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="#09d979" 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="#4cf445" 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="#b4d132" 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="#ff8352" 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="#ff3987" fill-opacity="1.000" /></g>
</svg>
["#b6cb6d", "#ff7c3d", "#ff3436", "#c91c5e", "#614190", "#118f9d", "#09d979", "#4cf445", "#b4d132", "#ff8352", "#ff3987"]
// https://grabient.com/_gIigIUgGagIZgGpgDWgTfgTVgZGgMhgCPgDt?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.546, 0.532, 0.410);
vec3 b = vec3(0.537, 0.425, 0.214);
vec3 c = vec3(1.247, 1.237, 1.606);
vec3 d = vec3(0.801, 0.143, 0.237);
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.546, 0.532, 0.410],
[0.537, 0.425, 0.214],
[1.247, 1.237, 1.606],
[0.801, 0.143, 0.237]
]