/* https://grabient.com/_gB5gIZgFtgBRgGKgG2gG9gAxgGShcdgIzg4DiFvovogA?style=linearSwatches&steps=13&angle=135 */
background: linear-gradient(135deg, #534e20 0.000%, #534e20 7.692%, #554f2e calc(7.692% + 1px), #554f2e 15.385%, #555040 calc(15.385% + 1px), #555040 23.077%, #555154 calc(23.077% + 1px), #555154 30.769%, #54536b calc(30.769% + 1px), #54536b 38.462%, #515482 calc(38.462% + 1px), #515482 46.154%, #4e5599 calc(46.154% + 1px), #4e5599 53.846%, #4a57af calc(53.846% + 1px), #4a57af 61.538%, #4558c3 calc(61.538% + 1px), #4558c3 69.231%, #4159d4 calc(69.231% + 1px), #4159d4 76.923%, #3c5be2 calc(76.923% + 1px), #3c5be2 84.615%, #375dea calc(84.615% + 1px), #375dea 92.308%, #335eee calc(92.308% + 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/_gB5gIZgFtgBRgGKgG2gG9gAxgGShcdgIzg4DiFvovogA?style=linearSwatches&steps=13&angle=135 -->
<defs>
<clipPath id="bounds">
<rect x="0" y="0" width="800" height="400" />
</clipPath>
</defs>
<g clip-path="url(#bounds)"><path d="M -216.228,216.228 L 416.228,-416.228 L 462.382,-370.074 L -170.074,262.382 Z" fill="#534e20" fill-opacity="1.000" /><path d="M -170.074,262.382 L 462.382,-370.074 L 508.535,-323.920 L -123.920,308.535 Z" fill="#554f2e" fill-opacity="1.000" /><path d="M -123.920,308.535 L 508.535,-323.920 L 554.689,-277.766 L -77.766,354.689 Z" fill="#555040" fill-opacity="1.000" /><path d="M -77.766,354.689 L 554.689,-277.766 L 600.843,-231.612 L -31.612,400.843 Z" fill="#555154" fill-opacity="1.000" /><path d="M -31.612,400.843 L 600.843,-231.612 L 646.997,-185.459 L 14.541,446.997 Z" fill="#54536b" fill-opacity="1.000" /><path d="M 14.541,446.997 L 646.997,-185.459 L 693.151,-139.305 L 60.695,493.151 Z" fill="#515482" fill-opacity="1.000" /><path d="M 60.695,493.151 L 693.151,-139.305 L 739.305,-93.151 L 106.849,539.305 Z" fill="#4e5599" fill-opacity="1.000" /><path d="M 106.849,539.305 L 739.305,-93.151 L 785.459,-46.997 L 153.003,585.459 Z" fill="#4a57af" fill-opacity="1.000" /><path d="M 153.003,585.459 L 785.459,-46.997 L 831.612,-0.843 L 199.157,631.612 Z" fill="#4558c3" fill-opacity="1.000" /><path d="M 199.157,631.612 L 831.612,-0.843 L 877.766,45.311 L 245.311,677.766 Z" fill="#4159d4" fill-opacity="1.000" /><path d="M 245.311,677.766 L 877.766,45.311 L 923.920,91.465 L 291.465,723.920 Z" fill="#3c5be2" fill-opacity="1.000" /><path d="M 291.465,723.920 L 923.920,91.465 L 970.074,137.618 L 337.618,770.074 Z" fill="#375dea" fill-opacity="1.000" /><path d="M 337.618,770.074 L 970.074,137.618 L 1016.228,183.772 L 383.772,816.228 Z" fill="#335eee" fill-opacity="1.000" /></g>
</svg>
["#534e20", "#554f2e", "#555040", "#555154", "#54536b", "#515482", "#4e5599", "#4a57af", "#4558c3", "#4159d4", "#3c5be2", "#375dea", "#335eee"]
// https://grabient.com/_gB5gIZgFtgBRgGKgG2gG9gAxgGShcdgIzg4DiFvovogA?style=linearSwatches&steps=13&angle=135
// cosine gradient palette — https://iquilezles.org/articles/palettes/
const float STEPS = 13.0;
const float ANGLE = 135.0;
vec3 palette(float t) {
vec3 a = vec3(0.254, 0.670, 0.498);
vec3 b = vec3(0.081, 0.394, 0.438);
vec3 c = vec3(0.445, 0.049, 0.402);
vec3 d = vec3(5.917, 0.563, 3.587);
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.254, 0.670, 0.498],
[0.081, 0.394, 0.438],
[0.445, 0.049, 0.402],
[5.917, 0.563, 3.587]
]