/* https://grabient.com/_gJwgLGgLegLDgK4gJCgBfgBegCmgopgo1go1?style=linearSwatches&steps=13&angle=45 */
background: linear-gradient(45deg, #0e2e4b 0.000%, #0e2e4b 7.692%, #133454 calc(7.692% + 1px), #133454 15.385%, #193a5e calc(15.385% + 1px), #193a5e 23.077%, #1f4168 calc(23.077% + 1px), #1f4168 30.769%, #264873 calc(30.769% + 1px), #264873 38.462%, #2d4f7e calc(38.462% + 1px), #2d4f7e 46.154%, #34568a calc(46.154% + 1px), #34568a 53.846%, #3b5d96 calc(53.846% + 1px), #3b5d96 61.538%, #4365a3 calc(61.538% + 1px), #4365a3 69.231%, #4b6db0 calc(69.231% + 1px), #4b6db0 76.923%, #5375bc calc(76.923% + 1px), #5375bc 84.615%, #5b7dc9 calc(84.615% + 1px), #5b7dc9 92.308%, #6386d6 calc(92.308% + 1px) 100.000%);
<svg xmlns="http://www.w3.org/2000/svg" width="800" height="400" viewBox="0 0 800 400" preserveAspectRatio="none">
<!-- https://grabient.com/_gJwgLGgLegLDgK4gJCgBfgBegCmgopgo1go1?style=linearSwatches&steps=13&angle=45 -->
<defs>
<clipPath id="bounds">
<rect x="0" y="0" width="800" height="400" />
</clipPath>
</defs>
<g clip-path="url(#bounds)"><path d="M 416.228,816.228 L -216.228,183.772 L -170.074,137.618 L 462.382,770.074 Z" fill="#0e2e4b" fill-opacity="1.000" /><path d="M 462.382,770.074 L -170.074,137.618 L -123.920,91.465 L 508.535,723.920 Z" fill="#133454" fill-opacity="1.000" /><path d="M 508.535,723.920 L -123.920,91.465 L -77.766,45.311 L 554.689,677.766 Z" fill="#193a5e" fill-opacity="1.000" /><path d="M 554.689,677.766 L -77.766,45.311 L -31.612,-0.843 L 600.843,631.612 Z" fill="#1f4168" fill-opacity="1.000" /><path d="M 600.843,631.612 L -31.612,-0.843 L 14.541,-46.997 L 646.997,585.459 Z" fill="#264873" fill-opacity="1.000" /><path d="M 646.997,585.459 L 14.541,-46.997 L 60.695,-93.151 L 693.151,539.305 Z" fill="#2d4f7e" fill-opacity="1.000" /><path d="M 693.151,539.305 L 60.695,-93.151 L 106.849,-139.305 L 739.305,493.151 Z" fill="#34568a" fill-opacity="1.000" /><path d="M 739.305,493.151 L 106.849,-139.305 L 153.003,-185.459 L 785.459,446.997 Z" fill="#3b5d96" fill-opacity="1.000" /><path d="M 785.459,446.997 L 153.003,-185.459 L 199.157,-231.612 L 831.612,400.843 Z" fill="#4365a3" fill-opacity="1.000" /><path d="M 831.612,400.843 L 199.157,-231.612 L 245.311,-277.766 L 877.766,354.689 Z" fill="#4b6db0" fill-opacity="1.000" /><path d="M 877.766,354.689 L 245.311,-277.766 L 291.465,-323.920 L 923.920,308.535 Z" fill="#5375bc" fill-opacity="1.000" /><path d="M 923.920,308.535 L 291.465,-323.920 L 337.618,-370.074 L 970.074,262.382 Z" fill="#5b7dc9" fill-opacity="1.000" /><path d="M 970.074,262.382 L 337.618,-370.074 L 383.772,-416.228 L 1016.228,216.228 Z" fill="#6386d6" fill-opacity="1.000" /></g>
</svg>
["#0e2e4b", "#133454", "#193a5e", "#1f4168", "#264873", "#2d4f7e", "#34568a", "#3b5d96", "#4365a3", "#4b6db0", "#5375bc", "#5b7dc9", "#6386d6"]
// https://grabient.com/_gJwgLGgLegLDgK4gJCgBfgBegCmgopgo1go1?style=linearSwatches&steps=13&angle=45
// cosine gradient palette — https://iquilezles.org/articles/palettes/
const float STEPS = 13.0;
const float ANGLE = 45.0;
vec3 palette(float t) {
vec3 a = vec3(0.624, 0.710, 0.734);
vec3 b = vec3(0.707, 0.696, 0.578);
vec3 c = vec3(0.095, 0.094, 0.166);
vec3 d = vec3(2.601, 2.613, 2.613);
return a + b * cos(6.283185 * (c * t + d));
}
// N hard swatches sampled from the palette
vec3 stops(float t) {
float i = min(floor(clamp(t, 0.0, 1.0) * STEPS), STEPS - 1.0);
return palette(i / (STEPS - 1.0));
}
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.624, 0.710, 0.734],
[0.707, 0.696, 0.578],
[0.095, 0.094, 0.166],
[2.601, 2.613, 2.613]
]