/* https://grabient.com/_gFZgEqgEggDMgC0gCDgH0gINgImgAAgAAgAA?style=linearGradient&steps=16&angle=0 */
background: linear-gradient(0deg, #8c7a6b 0.000%, #8b796a 6.667%, #877667 13.333%, #827063 20.000%, #7b695e 26.667%, #726157 33.333%, #685750 40.000%, #5d4d48 46.667%, #534340 53.333%, #483a39 60.000%, #3e3133 66.667%, #352a2e 73.333%, #2e242a 80.000%, #282028 86.667%, #251e28 93.333%, #241f2a 100.000%);
<svg xmlns="http://www.w3.org/2000/svg" width="800" height="400" viewBox="0 0 800 400" preserveAspectRatio="none">
<!-- https://grabient.com/_gFZgEqgEggDMgC0gCDgH0gINgImgAAgAAgAA?style=linearGradient&steps=16&angle=0 -->
<defs>
<linearGradient id="gradient" x1="0.500" y1="1.000" x2="0.500" y2="0.000">
<stop offset="0.000" stop-color="#8c7a6b" /><stop offset="0.067" stop-color="#8b796a" /><stop offset="0.133" stop-color="#877667" /><stop offset="0.200" stop-color="#827063" /><stop offset="0.267" stop-color="#7b695e" /><stop offset="0.333" stop-color="#726157" /><stop offset="0.400" stop-color="#685750" /><stop offset="0.467" stop-color="#5d4d48" /><stop offset="0.533" stop-color="#534340" /><stop offset="0.600" stop-color="#483a39" /><stop offset="0.667" stop-color="#3e3133" /><stop offset="0.733" stop-color="#352a2e" /><stop offset="0.800" stop-color="#2e242a" /><stop offset="0.867" stop-color="#282028" /><stop offset="0.933" stop-color="#251e28" /><stop offset="1.000" stop-color="#241f2a" />
</linearGradient>
</defs>
<rect x="0" y="0" width="800" height="400" fill="url(#gradient)" />
</svg>
["#8c7a6b", "#8b796a", "#877667", "#827063", "#7b695e", "#726157", "#685750", "#5d4d48", "#534340", "#483a39", "#3e3133", "#352a2e", "#2e242a", "#282028", "#251e28", "#241f2a"]
// https://grabient.com/_gFZgEqgEggDMgC0gCDgH0gINgImgAAgAAgAA?style=linearGradient&steps=16&angle=0
// cosine gradient palette — https://iquilezles.org/articles/palettes/
const float STEPS = 16.0;
const float ANGLE = 0.0;
vec3 palette(float t) {
vec3 a = vec3(0.345, 0.298, 0.288);
vec3 b = vec3(0.204, 0.180, 0.131);
vec3 c = vec3(0.500, 0.525, 0.550);
vec3 d = vec3(0.000, 0.000, 0.000);
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.345, 0.298, 0.288],
[0.204, 0.180, 0.131],
[0.500, 0.525, 0.550],
[0.000, 0.000, 0.000]
]