/* https://grabient.com/_gPogLyfySgAAgH0gdtgHCgCDgBmgAAgKMgMh?style=linearSwatches&steps=21&angle=0 */
background: linear-gradient(0deg, #ff7700 0.000%, #ff7700 4.762%, #ff7b00 calc(4.762% + 1px), #ff7b00 9.524%, #ff7f00 calc(9.524% + 1px), #ff7f00 14.286%, #ff8400 calc(14.286% + 1px), #ff8400 19.048%, #ff8900 calc(19.048% + 1px), #ff8900 23.810%, #ff8d00 calc(23.810% + 1px), #ff8d00 28.571%, #ff920e calc(28.571% + 1px), #ff920e 33.333%, #ff971b calc(33.333% + 1px), #ff971b 38.095%, #ff9c28 calc(38.095% + 1px), #ff9c28 42.857%, #ffa135 calc(42.857% + 1px), #ffa135 47.619%, #ffa642 calc(47.619% + 1px), #ffa642 52.381%, #ffac4e calc(52.381% + 1px), #ffac4e 57.143%, #ffb15a calc(57.143% + 1px), #ffb15a 61.905%, #ffb666 calc(61.905% + 1px), #ffb666 66.667%, #ffbb71 calc(66.667% + 1px), #ffbb71 71.429%, #ffc07c calc(71.429% + 1px), #ffc07c 76.190%, #ffc687 calc(76.190% + 1px), #ffc687 80.952%, #ffcb91 calc(80.952% + 1px), #ffcb91 85.714%, #ffd09b calc(85.714% + 1px), #ffd09b 90.476%, #ffd5a4 calc(90.476% + 1px), #ffd5a4 95.238%, #ffdbae calc(95.238% + 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/_gPogLyfySgAAgH0gdtgHCgCDgBmgAAgKMgMh?style=linearSwatches&steps=21&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,380.952 L 847.214,380.952 Z" fill="#ff7700" fill-opacity="1.000" /><path d="M 847.214,380.952 L -47.214,380.952 L -47.214,361.905 L 847.214,361.905 Z" fill="#ff7b00" fill-opacity="1.000" /><path d="M 847.214,361.905 L -47.214,361.905 L -47.214,342.857 L 847.214,342.857 Z" fill="#ff7f00" fill-opacity="1.000" /><path d="M 847.214,342.857 L -47.214,342.857 L -47.214,323.810 L 847.214,323.810 Z" fill="#ff8400" fill-opacity="1.000" /><path d="M 847.214,323.810 L -47.214,323.810 L -47.214,304.762 L 847.214,304.762 Z" fill="#ff8900" fill-opacity="1.000" /><path d="M 847.214,304.762 L -47.214,304.762 L -47.214,285.714 L 847.214,285.714 Z" fill="#ff8d00" fill-opacity="1.000" /><path d="M 847.214,285.714 L -47.214,285.714 L -47.214,266.667 L 847.214,266.667 Z" fill="#ff920e" fill-opacity="1.000" /><path d="M 847.214,266.667 L -47.214,266.667 L -47.214,247.619 L 847.214,247.619 Z" fill="#ff971b" fill-opacity="1.000" /><path d="M 847.214,247.619 L -47.214,247.619 L -47.214,228.571 L 847.214,228.571 Z" fill="#ff9c28" fill-opacity="1.000" /><path d="M 847.214,228.571 L -47.214,228.571 L -47.214,209.524 L 847.214,209.524 Z" fill="#ffa135" fill-opacity="1.000" /><path d="M 847.214,209.524 L -47.214,209.524 L -47.214,190.476 L 847.214,190.476 Z" fill="#ffa642" fill-opacity="1.000" /><path d="M 847.214,190.476 L -47.214,190.476 L -47.214,171.429 L 847.214,171.429 Z" fill="#ffac4e" fill-opacity="1.000" /><path d="M 847.214,171.429 L -47.214,171.429 L -47.214,152.381 L 847.214,152.381 Z" fill="#ffb15a" fill-opacity="1.000" /><path d="M 847.214,152.381 L -47.214,152.381 L -47.214,133.333 L 847.214,133.333 Z" fill="#ffb666" fill-opacity="1.000" /><path d="M 847.214,133.333 L -47.214,133.333 L -47.214,114.286 L 847.214,114.286 Z" fill="#ffbb71" fill-opacity="1.000" /><path d="M 847.214,114.286 L -47.214,114.286 L -47.214,95.238 L 847.214,95.238 Z" fill="#ffc07c" fill-opacity="1.000" /><path d="M 847.214,95.238 L -47.214,95.238 L -47.214,76.190 L 847.214,76.190 Z" fill="#ffc687" fill-opacity="1.000" /><path d="M 847.214,76.190 L -47.214,76.190 L -47.214,57.143 L 847.214,57.143 Z" fill="#ffcb91" fill-opacity="1.000" /><path d="M 847.214,57.143 L -47.214,57.143 L -47.214,38.095 L 847.214,38.095 Z" fill="#ffd09b" fill-opacity="1.000" /><path d="M 847.214,38.095 L -47.214,38.095 L -47.214,19.048 L 847.214,19.048 Z" fill="#ffd5a4" fill-opacity="1.000" /><path d="M 847.214,19.048 L -47.214,19.048 L -47.214,-0.000 L 847.214,0.000 Z" fill="#ffdbae" fill-opacity="1.000" /></g>
</svg>
["#ff7700", "#ff7b00", "#ff7f00", "#ff8400", "#ff8900", "#ff8d00", "#ff920e", "#ff971b", "#ff9c28", "#ffa135", "#ffa642", "#ffac4e", "#ffb15a", "#ffb666", "#ffbb71", "#ffc07c", "#ffc687", "#ffcb91", "#ffd09b", "#ffd5a4", "#ffdbae"]
// https://grabient.com/_gPogLyfySgAAgH0gdtgHCgCDgBmgAAgKMgMh?style=linearSwatches&steps=21&angle=0
// cosine gradient palette — https://iquilezles.org/articles/palettes/
const float STEPS = 21.0;
const float ANGLE = 0.0;
vec3 palette(float t) {
vec3 a = vec3(1.000, 0.754, -0.878);
vec3 b = vec3(0.000, 0.500, 1.901);
vec3 c = vec3(0.450, 0.131, 0.102);
vec3 d = vec3(0.000, 0.652, 0.801);
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);
}
[
[1.000, 0.754, -0.878],
[0.000, 0.500, 1.901],
[0.450, 0.131, 0.102],
[0.000, 0.652, 0.801]
]