/* https://grabient.com/_gGGgFagE9gKfgR_gEjgBhgBjgC0gNegKygKVizqgxDfz?style=linearSwatches&steps=13&angle=0 */
background: linear-gradient(0deg, #d42f61 0.000%, #d42f61 7.692%, #d93965 calc(7.692% + 1px), #d93965 15.385%, #de4369 calc(15.385% + 1px), #de4369 23.077%, #e34e6e calc(23.077% + 1px), #e34e6e 30.769%, #e75873 calc(30.769% + 1px), #e75873 38.462%, #eb6378 calc(38.462% + 1px), #eb6378 46.154%, #ef6e7d calc(46.154% + 1px), #ef6e7d 53.846%, #f27982 calc(53.846% + 1px), #f27982 61.538%, #f68587 calc(61.538% + 1px), #f68587 69.231%, #f9908c calc(69.231% + 1px), #f9908c 76.923%, #fb9b91 calc(76.923% + 1px), #fb9b91 84.615%, #fea696 calc(84.615% + 1px), #fea696 92.308%, #ffb19a 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/_gGGgFagE9gKfgR_gEjgBhgBjgC0gNegKygKVizqgxDfz?style=linearSwatches&steps=13&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,369.231 L 847.214,369.231 Z" fill="#d42f61" fill-opacity="1.000" /><path d="M 847.214,369.231 L -47.214,369.231 L -47.214,338.462 L 847.214,338.462 Z" fill="#d93965" fill-opacity="1.000" /><path d="M 847.214,338.462 L -47.214,338.462 L -47.214,307.692 L 847.214,307.692 Z" fill="#de4369" fill-opacity="1.000" /><path d="M 847.214,307.692 L -47.214,307.692 L -47.214,276.923 L 847.214,276.923 Z" fill="#e34e6e" fill-opacity="1.000" /><path d="M 847.214,276.923 L -47.214,276.923 L -47.214,246.154 L 847.214,246.154 Z" fill="#e75873" fill-opacity="1.000" /><path d="M 847.214,246.154 L -47.214,246.154 L -47.214,215.385 L 847.214,215.385 Z" fill="#eb6378" fill-opacity="1.000" /><path d="M 847.214,215.385 L -47.214,215.385 L -47.214,184.615 L 847.214,184.615 Z" fill="#ef6e7d" fill-opacity="1.000" /><path d="M 847.214,184.615 L -47.214,184.615 L -47.214,153.846 L 847.214,153.846 Z" fill="#f27982" fill-opacity="1.000" /><path d="M 847.214,153.846 L -47.214,153.846 L -47.214,123.077 L 847.214,123.077 Z" fill="#f68587" fill-opacity="1.000" /><path d="M 847.214,123.077 L -47.214,123.077 L -47.214,92.308 L 847.214,92.308 Z" fill="#f9908c" fill-opacity="1.000" /><path d="M 847.214,92.308 L -47.214,92.308 L -47.214,61.538 L 847.214,61.538 Z" fill="#fb9b91" fill-opacity="1.000" /><path d="M 847.214,61.538 L -47.214,61.538 L -47.214,30.769 L 847.214,30.769 Z" fill="#fea696" fill-opacity="1.000" /><path d="M 847.214,30.769 L -47.214,30.769 L -47.214,-0.000 L 847.214,0.000 Z" fill="#ffb19a" fill-opacity="1.000" /></g>
</svg>
["#d42f61", "#d93965", "#de4369", "#e34e6e", "#e75873", "#eb6378", "#ef6e7d", "#f27982", "#f68587", "#f9908c", "#fb9b91", "#fea696", "#ffb19a"]
// https://grabient.com/_gGGgFagE9gKfgR_gEjgBhgBjgC0gNegKygKVizqgxDfz?style=linearSwatches&steps=13&angle=0
// cosine gradient palette — https://iquilezles.org/articles/palettes/
const float STEPS = 13.0;
const float ANGLE = 0.0;
vec3 palette(float t) {
vec3 a = vec3(0.569, 0.525, 0.496);
vec3 b = vec3(0.451, 0.773, 0.196);
vec3 c = vec3(0.106, 0.108, 0.196);
vec3 d = vec3(0.849, 0.677, 0.648);
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.569, 0.525, 0.496],
[0.451, 0.773, 0.196],
[0.106, 0.108, 0.196],
[0.849, 0.677, 0.648]
]