/* https://grabient.com/_gLEgLjgKpgDwgDEgCkgHHgHqgHahIoguugipgAvouCgA?style=linearSwatches&steps=13&angle=15 */
background: linear-gradient(15deg, #90eeb6 0.000%, #90eeb6 7.692%, #9beead calc(7.692% + 1px), #9beead 15.385%, #a8eba4 calc(15.385% + 1px), #a8eba4 23.077%, #b5e59b calc(23.077% + 1px), #b5e59b 30.769%, #c2dd93 calc(30.769% + 1px), #c2dd93 38.462%, #ced48d calc(38.462% + 1px), #ced48d 46.154%, #d9c988 calc(46.154% + 1px), #d9c988 53.846%, #e3bd85 calc(53.846% + 1px), #e3bd85 61.538%, #eab284 calc(61.538% + 1px), #eab284 69.231%, #efa785 calc(69.231% + 1px), #efa785 76.923%, #f29d88 calc(76.923% + 1px), #f29d88 84.615%, #f1958d calc(84.615% + 1px), #f1958d 92.308%, #ee8f94 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/_gLEgLjgKpgDwgDEgCkgHHgHqgHahIoguugipgAvouCgA?style=linearSwatches&steps=13&angle=15 -->
<defs>
<clipPath id="bounds">
<rect x="0" y="0" width="800" height="400" />
</clipPath>
</defs>
<g clip-path="url(#bounds)"><path d="M 755.180,602.350 L -108.770,370.855 L -96.955,326.762 L 766.995,558.257 Z" fill="#90eeb6" fill-opacity="1.000" /><path d="M 766.995,558.257 L -96.955,326.762 L -85.141,282.670 L 778.809,514.165 Z" fill="#9beead" fill-opacity="1.000" /><path d="M 778.809,514.165 L -85.141,282.670 L -73.326,238.577 L 790.624,470.072 Z" fill="#a8eba4" fill-opacity="1.000" /><path d="M 790.624,470.072 L -73.326,238.577 L -61.512,194.484 L 802.439,425.979 Z" fill="#b5e59b" fill-opacity="1.000" /><path d="M 802.439,425.979 L -61.512,194.484 L -49.697,150.392 L 814.253,381.886 Z" fill="#c2dd93" fill-opacity="1.000" /><path d="M 814.253,381.886 L -49.697,150.392 L -37.882,106.299 L 826.068,337.794 Z" fill="#ced48d" fill-opacity="1.000" /><path d="M 826.068,337.794 L -37.882,106.299 L -26.068,62.206 L 837.882,293.701 Z" fill="#d9c988" fill-opacity="1.000" /><path d="M 837.882,293.701 L -26.068,62.206 L -14.253,18.114 L 849.697,249.608 Z" fill="#e3bd85" fill-opacity="1.000" /><path d="M 849.697,249.608 L -14.253,18.114 L -2.439,-25.979 L 861.512,205.516 Z" fill="#eab284" fill-opacity="1.000" /><path d="M 861.512,205.516 L -2.439,-25.979 L 9.376,-70.072 L 873.326,161.423 Z" fill="#efa785" fill-opacity="1.000" /><path d="M 873.326,161.423 L 9.376,-70.072 L 21.191,-114.165 L 885.141,117.330 Z" fill="#f29d88" fill-opacity="1.000" /><path d="M 885.141,117.330 L 21.191,-114.165 L 33.005,-158.257 L 896.955,73.238 Z" fill="#f1958d" fill-opacity="1.000" /><path d="M 896.955,73.238 L 33.005,-158.257 L 44.820,-202.350 L 908.770,29.145 Z" fill="#ee8f94" fill-opacity="1.000" /></g>
</svg>
["#90eeb6", "#9beead", "#a8eba4", "#b5e59b", "#c2dd93", "#ced48d", "#d9c988", "#e3bd85", "#eab284", "#efa785", "#f29d88", "#f1958d", "#ee8f94"]
// https://grabient.com/_gLEgLjgKpgDwgDEgCkgHHgHqgHahIoguugipgAvouCgA?style=linearSwatches&steps=13&angle=15
// cosine gradient palette — https://iquilezles.org/articles/palettes/
const float STEPS = 13.0;
const float ANGLE = 15.0;
vec3 palette(float t) {
vec3 a = vec3(0.708, 0.739, 0.681);
vec3 b = vec3(0.240, 0.196, 0.164);
vec3 c = vec3(0.409, 0.440, 0.426);
vec3 d = vec3(4.648, 2.990, 2.217);
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.708, 0.739, 0.681],
[0.240, 0.196, 0.164],
[0.409, 0.440, 0.426],
[4.648, 2.990, 2.217]
]