/* https://grabient.com/_gEPgFIgFagBjgCpgESgOnghVgh8gBRgJDgJz?style=linearSwatches&steps=11&angle=45 */
background: linear-gradient(45deg, #5b2e27 0.000%, #5b2e27 9.091%, #515f7f calc(9.091% + 1px), #515f7f 18.182%, #427f99 calc(18.182% + 1px), #427f99 27.273%, #355c4c calc(27.273% + 1px), #355c4c 36.364%, #2d2c12 calc(36.364% + 1px), #2d2c12 45.455%, #2d3948 calc(45.455% + 1px), #2d3948 54.545%, #356f97 calc(54.545% + 1px), #356f97 63.636%, #437a82 calc(63.636% + 1px), #437a82 72.727%, #514a2a calc(72.727% + 1px), #514a2a 81.818%, #5b291b calc(81.818% + 1px), #5b291b 90.909%, #5e496d 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/_gEPgFIgFagBjgCpgESgOnghVgh8gBRgJDgJz?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="#5b2e27" 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="#515f7f" 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="#427f99" 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="#355c4c" 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="#2d2c12" 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="#2d3948" 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="#356f97" 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="#437a82" 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="#514a2a" 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="#5b291b" 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="#5e496d" fill-opacity="1.000" /></g>
</svg>
["#5b2e27", "#515f7f", "#427f99", "#355c4c", "#2d2c12", "#2d3948", "#356f97", "#437a82", "#514a2a", "#5b291b", "#5e496d"]
// https://grabient.com/_gEPgFIgFagBjgCpgESgOnghVgh8gBRgJDgJz?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.271, 0.328, 0.346);
vec3 b = vec3(0.099, 0.169, 0.274);
vec3 c = vec3(0.935, 2.133, 2.172);
vec3 d = vec3(0.081, 0.579, 0.627);
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.271, 0.328, 0.346],
[0.099, 0.169, 0.274],
[0.935, 2.133, 2.172],
[0.081, 0.579, 0.627]
]