/* https://grabient.com/_gINgH-gIVf6Af7qf-igH0gH0gH0gAUgAAf_s?style=linearGradient&steps=14&angle=180 */
background: linear-gradient(180deg, #253b70 0.000%, #2a3d70 7.692%, #364371 15.385%, #454d74 23.077%, #595a78 30.769%, #6f697d 38.462%, #867a82 46.154%, #9e8b88 53.846%, #b49b8e 61.538%, #c7aa93 69.231%, #d7b798 76.923%, #e2c19c 84.615%, #e7c79e 92.308%, #e7c9a0 100.000%);
<svg xmlns="http://www.w3.org/2000/svg" width="800" height="400" viewBox="0 0 800 400" preserveAspectRatio="none">
<!-- https://grabient.com/_gINgH-gIVf6Af7qf-igH0gH0gH0gAUgAAf_s?style=linearGradient&steps=14&angle=180 -->
<defs>
<linearGradient id="gradient" x1="0.500" y1="0.000" x2="0.500" y2="1.000">
<stop offset="0.000" stop-color="#253b70" /><stop offset="0.077" stop-color="#2a3d70" /><stop offset="0.154" stop-color="#364371" /><stop offset="0.231" stop-color="#454d74" /><stop offset="0.308" stop-color="#595a78" /><stop offset="0.385" stop-color="#6f697d" /><stop offset="0.462" stop-color="#867a82" /><stop offset="0.538" stop-color="#9e8b88" /><stop offset="0.615" stop-color="#b49b8e" /><stop offset="0.692" stop-color="#c7aa93" /><stop offset="0.769" stop-color="#d7b798" /><stop offset="0.846" stop-color="#e2c19c" /><stop offset="0.923" stop-color="#e7c79e" /><stop offset="1.000" stop-color="#e7c9a0" />
</linearGradient>
</defs>
<rect x="0" y="0" width="800" height="400" fill="url(#gradient)" />
</svg>
["#253b70", "#2a3d70", "#364371", "#454d74", "#595a78", "#6f697d", "#867a82", "#9e8b88", "#b49b8e", "#c7aa93", "#d7b798", "#e2c19c", "#e7c79e", "#e7c9a0"]
// https://grabient.com/_gINgH-gIVf6Af7qf-igH0gH0gH0gAUgAAf_s?style=linearGradient&steps=14&angle=180
// cosine gradient palette — https://iquilezles.org/articles/palettes/
const float STEPS = 14.0;
const float ANGLE = 180.0;
vec3 palette(float t) {
vec3 a = vec3(0.525, 0.510, 0.533);
vec3 b = vec3(-0.384, -0.278, -0.094);
vec3 c = vec3(0.500, 0.500, 0.500);
vec3 d = vec3(0.020, 0.000, -0.020);
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);
}
[
[0.525, 0.510, 0.533],
[-0.384, -0.278, -0.094],
[0.500, 0.500, 0.500],
[0.020, 0.000, -0.020]
]