/* https://grabient.com/_gGEgLQgK0f6zf8Xf8ugH0gH0gH0gAegAAgAA?style=linearGradient&steps=16&angle=45 */
background: linear-gradient(45deg, #107c7b 0.000%, #157d7c 6.667%, #1d8180 13.333%, #298885 20.000%, #37908d 26.667%, #479a96 33.333%, #58a5a0 40.000%, #6ab1ab 46.667%, #7bbeb6 53.333%, #8ccac1 60.000%, #9ad5cb 66.667%, #a7dfd4 73.333%, #b0e8dc 80.000%, #b6eee1 86.667%, #b8f2e5 93.333%, #b6f3e6 100.000%);
<svg xmlns="http://www.w3.org/2000/svg" width="800" height="400" viewBox="0 0 800 400" preserveAspectRatio="none">
<!-- https://grabient.com/_gGEgLQgK0f6zf8Xf8ugH0gH0gH0gAegAAgAA?style=linearGradient&steps=16&angle=45 -->
<defs>
<linearGradient id="gradient" x1="0.146" y1="0.854" x2="0.854" y2="0.146">
<stop offset="0.000" stop-color="#107c7b" /><stop offset="0.067" stop-color="#157d7c" /><stop offset="0.133" stop-color="#1d8180" /><stop offset="0.200" stop-color="#298885" /><stop offset="0.267" stop-color="#37908d" /><stop offset="0.333" stop-color="#479a96" /><stop offset="0.400" stop-color="#58a5a0" /><stop offset="0.467" stop-color="#6ab1ab" /><stop offset="0.533" stop-color="#7bbeb6" /><stop offset="0.600" stop-color="#8ccac1" /><stop offset="0.667" stop-color="#9ad5cb" /><stop offset="0.733" stop-color="#a7dfd4" /><stop offset="0.800" stop-color="#b0e8dc" /><stop offset="0.867" stop-color="#b6eee1" /><stop offset="0.933" stop-color="#b8f2e5" /><stop offset="1.000" stop-color="#b6f3e6" />
</linearGradient>
</defs>
<rect x="0" y="0" width="800" height="400" fill="url(#gradient)" />
</svg>
["#107c7b", "#157d7c", "#1d8180", "#298885", "#37908d", "#479a96", "#58a5a0", "#6ab1ab", "#7bbeb6", "#8ccac1", "#9ad5cb", "#a7dfd4", "#b0e8dc", "#b6eee1", "#b8f2e5", "#b6f3e6"]
// https://grabient.com/_gGEgLQgK0f6zf8Xf8ugH0gH0gH0gAegAAgAA?style=linearGradient&steps=16&angle=45
// cosine gradient palette — https://iquilezles.org/articles/palettes/
const float STEPS = 16.0;
const float ANGLE = 45.0;
vec3 palette(float t) {
vec3 a = vec3(0.388, 0.720, 0.692);
vec3 b = vec3(-0.333, -0.233, -0.210);
vec3 c = vec3(0.500, 0.500, 0.500);
vec3 d = vec3(0.030, 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.388, 0.720, 0.692],
[-0.333, -0.233, -0.210],
[0.500, 0.500, 0.500],
[0.030, 0.000, 0.000]
]