/* https://grabient.com/_e4IgKSgI5hYCgFEgFDgBngHAgJwgPLgIxgHb?style=linearGradient&steps=21&angle=180 */
background: linear-gradient(180deg, #f05b40 0.000%, #f8603f 5.000%, #fe6741 10.000%, #ff6f46 15.000%, #ff774e 20.000%, #ff8159 25.000%, #ff8c66 30.000%, #ff9774 35.000%, #ffa384 40.000%, #ffae94 45.000%, #f9baa4 50.000%, #f2c5b3 55.000%, #e9d0c1 60.000%, #dfd9cd 65.000%, #d3e2d7 70.000%, #c6eade 75.000%, #b8f0e2 80.000%, #a8f5e3 85.000%, #96f8e1 90.000%, #83fadc 95.000%, #6ffad4 100.000%);
<svg xmlns="http://www.w3.org/2000/svg" width="800" height="400" viewBox="0 0 800 400" preserveAspectRatio="none">
<!-- https://grabient.com/_e4IgKSgI5hYCgFEgFDgBngHAgJwgPLgIxgHb?style=linearGradient&steps=21&angle=180 -->
<defs>
<linearGradient id="gradient" x1="0.500" y1="0.000" x2="0.500" y2="1.000">
<stop offset="0.000" stop-color="#f05b40" /><stop offset="0.050" stop-color="#f8603f" /><stop offset="0.100" stop-color="#fe6741" /><stop offset="0.150" stop-color="#ff6f46" /><stop offset="0.200" stop-color="#ff774e" /><stop offset="0.250" stop-color="#ff8159" /><stop offset="0.300" stop-color="#ff8c66" /><stop offset="0.350" stop-color="#ff9774" /><stop offset="0.400" stop-color="#ffa384" /><stop offset="0.450" stop-color="#ffae94" /><stop offset="0.500" stop-color="#f9baa4" /><stop offset="0.550" stop-color="#f2c5b3" /><stop offset="0.600" stop-color="#e9d0c1" /><stop offset="0.650" stop-color="#dfd9cd" /><stop offset="0.700" stop-color="#d3e2d7" /><stop offset="0.750" stop-color="#c6eade" /><stop offset="0.800" stop-color="#b8f0e2" /><stop offset="0.850" stop-color="#a8f5e3" /><stop offset="0.900" stop-color="#96f8e1" /><stop offset="0.950" stop-color="#83fadc" /><stop offset="1.000" stop-color="#6ffad4" />
</linearGradient>
</defs>
<rect x="0" y="0" width="800" height="400" fill="url(#gradient)" />
</svg>
["#f05b40", "#f8603f", "#fe6741", "#ff6f46", "#ff774e", "#ff8159", "#ff8c66", "#ff9774", "#ffa384", "#ffae94", "#f9baa4", "#f2c5b3", "#e9d0c1", "#dfd9cd", "#d3e2d7", "#c6eade", "#b8f0e2", "#a8f5e3", "#96f8e1", "#83fadc", "#6ffad4"]
// https://grabient.com/_e4IgKSgI5hYCgFEgFDgBngHAgJwgPLgIxgHb?style=linearGradient&steps=21&angle=180
// cosine gradient palette — https://iquilezles.org/articles/palettes/
const float STEPS = 21.0;
const float ANGLE = 180.0;
vec3 palette(float t) {
vec3 a = vec3(-4.600, 0.658, 0.569);
vec3 b = vec3(5.634, 0.324, 0.323);
vec3 c = vec3(0.103, 0.448, 0.624);
vec3 d = vec3(0.971, 0.561, 0.475);
return a + b * cos(6.283185 * (c * t + d));
}
// N stops sampled from the palette, blended like the CSS gradient
vec3 stops(float t) {
float n = STEPS - 1.0;
float x = clamp(t, 0.0, 1.0) * n;
return mix(palette(floor(x) / n), palette(min(floor(x) + 1.0, n) / n), fract(x));
}
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);
}
[
[-4.600, 0.658, 0.569],
[5.634, 0.324, 0.323],
[0.103, 0.448, 0.624],
[0.971, 0.561, 0.475]
]