/* https://grabient.com/_gFEgHTgLYgNKgFxf2Sf3Jf6OgDygVgf3ifxH?style=radialGradient&steps=13&angle=90 */
background: radial-gradient(circle at 50% 50%, #001c22 0.000%, #002329 8.333%, #282c32 16.667%, #68393e 25.000%, #a5474b 33.333%, #dc585b 41.667%, #ff6a6b 50.000%, #ff7c7e 58.333%, #ff8e91 66.667%, #ff9fa4 75.000%, #ffafb8 83.333%, #d8bccc 91.667%, #a0c7e0 100.000%);
<svg xmlns="http://www.w3.org/2000/svg" width="800" height="400" viewBox="0 0 800 400" preserveAspectRatio="none">
<!-- https://grabient.com/_gFEgHTgLYgNKgFxf2Sf3Jf6OgDygVgf3ifxH?style=radialGradient&steps=13&angle=90 -->
<defs>
<radialGradient id="radial" gradientUnits="userSpaceOnUse" cx="400.000" cy="200.000" r="447.214">
<stop offset="0.000" stop-color="#001c22" /><stop offset="0.083" stop-color="#002329" /><stop offset="0.167" stop-color="#282c32" /><stop offset="0.250" stop-color="#68393e" /><stop offset="0.333" stop-color="#a5474b" /><stop offset="0.417" stop-color="#dc585b" /><stop offset="0.500" stop-color="#ff6a6b" /><stop offset="0.583" stop-color="#ff7c7e" /><stop offset="0.667" stop-color="#ff8e91" /><stop offset="0.750" stop-color="#ff9fa4" /><stop offset="0.833" stop-color="#ffafb8" /><stop offset="0.917" stop-color="#d8bccc" /><stop offset="1.000" stop-color="#a0c7e0" />
</radialGradient>
</defs>
<rect x="0" y="0" width="800" height="400" fill="url(#radial)" />
</svg>
["#001c22", "#002329", "#282c32", "#68393e", "#a5474b", "#dc585b", "#ff6a6b", "#ff7c7e", "#ff8e91", "#ff9fa4", "#ffafb8", "#d8bccc", "#a0c7e0"]
// https://grabient.com/_gFEgHTgLYgNKgFxf2Sf3Jf6OgDygVgf3ifxH?style=radialGradient&steps=13&angle=90
// cosine gradient palette — https://iquilezles.org/articles/palettes/
const float STEPS = 13.0;
vec3 palette(float t) {
vec3 a = vec3(0.324, 0.467, 0.728);
vec3 b = vec3(0.842, 0.369, -0.622);
vec3 c = vec3(-0.567, -0.370, 0.242);
vec3 d = vec3(1.376, -0.542, -0.953);
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;
// circle to the farthest corner (CSS default)
float t = length(p) / length(0.5 * iResolution.xy);
fragColor = vec4(stops(t), 1.0);
}
[
[0.324, 0.467, 0.728],
[0.842, 0.369, -0.622],
[-0.567, -0.370, 0.242],
[1.376, -0.542, -0.953]
]