/* https://grabient.com/_gH9gHCgGcgEvgCcgCzgaIgiMgXAgE8gBYgBx?style=linearSwatches&steps=11&angle=0 */
background: linear-gradient(0deg, #63958c 0.000%, #63958c 9.091%, #356566 calc(9.091% + 1px), #356566 18.182%, #554b43 calc(18.182% + 1px), #554b43 27.273%, #a2713e calc(27.273% + 1px), #a2713e 36.364%, #cf995b calc(36.364% + 1px), #cf995b 45.455%, #ae8384 calc(45.455% + 1px), #ae8384 54.545%, #615297 calc(54.545% + 1px), #615297 63.636%, #355685 calc(63.636% + 1px), #355685 72.727%, #56885e calc(72.727% + 1px), #56885e 81.818%, #a3983f calc(81.818% + 1px), #a3983f 90.909%, #cf6c42 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/_gH9gHCgGcgEvgCcgCzgaIgiMgXAgE8gBYgBx?style=linearSwatches&steps=11&angle=0 -->
<defs>
<clipPath id="bounds">
<rect x="0" y="0" width="800" height="400" />
</clipPath>
</defs>
<g clip-path="url(#bounds)"><path d="M 847.214,400.000 L -47.214,400.000 L -47.214,363.636 L 847.214,363.636 Z" fill="#63958c" fill-opacity="1.000" /><path d="M 847.214,363.636 L -47.214,363.636 L -47.214,327.273 L 847.214,327.273 Z" fill="#356566" fill-opacity="1.000" /><path d="M 847.214,327.273 L -47.214,327.273 L -47.214,290.909 L 847.214,290.909 Z" fill="#554b43" fill-opacity="1.000" /><path d="M 847.214,290.909 L -47.214,290.909 L -47.214,254.545 L 847.214,254.545 Z" fill="#a2713e" fill-opacity="1.000" /><path d="M 847.214,254.545 L -47.214,254.545 L -47.214,218.182 L 847.214,218.182 Z" fill="#cf995b" fill-opacity="1.000" /><path d="M 847.214,218.182 L -47.214,218.182 L -47.214,181.818 L 847.214,181.818 Z" fill="#ae8384" fill-opacity="1.000" /><path d="M 847.214,181.818 L -47.214,181.818 L -47.214,145.455 L 847.214,145.455 Z" fill="#615297" fill-opacity="1.000" /><path d="M 847.214,145.455 L -47.214,145.455 L -47.214,109.091 L 847.214,109.091 Z" fill="#355685" fill-opacity="1.000" /><path d="M 847.214,109.091 L -47.214,109.091 L -47.214,72.727 L 847.214,72.727 Z" fill="#56885e" fill-opacity="1.000" /><path d="M 847.214,72.727 L -47.214,72.727 L -47.214,36.364 L 847.214,36.364 Z" fill="#a3983f" fill-opacity="1.000" /><path d="M 847.214,36.364 L -47.214,36.364 L -47.214,-0.000 L 847.214,0.000 Z" fill="#cf6c42" fill-opacity="1.000" /></g>
</svg>
["#63958c", "#356566", "#554b43", "#a2713e", "#cf995b", "#ae8384", "#615297", "#355685", "#56885e", "#a3983f", "#cf6c42"]
// https://grabient.com/_gH9gHCgGcgEvgCcgCzgaIgiMgXAgE8gBYgBx?style=linearSwatches&steps=11&angle=0
// cosine gradient palette — https://iquilezles.org/articles/palettes/
const float STEPS = 11.0;
const float ANGLE = 0.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.672, 2.188, 1.472);
vec3 d = vec3(0.316, 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.672, 2.188, 1.472],
[0.316, 0.088, 0.113]
]