/* https://grabient.com/_gE7gHlfslgFEgFEggIgGvgGsgBmgHZgJogOZ?style=linearSwatches&steps=21&angle=315 */
background: linear-gradient(315deg, #003e90 0.000%, #003e90 4.762%, #004698 calc(4.762% + 1px), #004698 9.524%, #004f9f calc(9.524% + 1px), #004f9f 14.286%, #0059a6 calc(14.286% + 1px), #0059a6 19.048%, #0363ac calc(19.048% + 1px), #0363ac 23.810%, #086eb2 calc(23.810% + 1px), #086eb2 28.571%, #0e79b7 calc(28.571% + 1px), #0e79b7 33.333%, #1584bc calc(33.333% + 1px), #1584bc 38.095%, #1e8fc0 calc(38.095% + 1px), #1e8fc0 42.857%, #2799c4 calc(42.857% + 1px), #2799c4 47.619%, #31a3c7 calc(47.619% + 1px), #31a3c7 52.381%, #3cadca calc(52.381% + 1px), #3cadca 57.143%, #47b5cc calc(57.143% + 1px), #47b5cc 61.905%, #52bdce calc(61.905% + 1px), #52bdce 66.667%, #5dc3cf calc(66.667% + 1px), #5dc3cf 71.429%, #68c8cf calc(71.429% + 1px), #68c8cf 76.190%, #72cbcf calc(76.190% + 1px), #72cbcf 80.952%, #7ccecf calc(80.952% + 1px), #7ccecf 85.714%, #85cece calc(85.714% + 1px), #85cece 90.476%, #8dcdcc calc(90.476% + 1px), #8dcdcc 95.238%, #94cbca calc(95.238% + 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/_gE7gHlfslgFEgFEggIgGvgGsgBmgHZgJogOZ?style=linearSwatches&steps=21&angle=315 -->
<defs>
<clipPath id="bounds">
<rect x="0" y="0" width="800" height="400" />
</clipPath>
</defs>
<g clip-path="url(#bounds)"><path d="M 1016.228,183.772 L 383.772,816.228 L 355.201,787.656 L 987.656,155.201 Z" fill="#003e90" fill-opacity="1.000" /><path d="M 987.656,155.201 L 355.201,787.656 L 326.629,759.085 L 959.085,126.629 Z" fill="#004698" fill-opacity="1.000" /><path d="M 959.085,126.629 L 326.629,759.085 L 298.058,730.513 L 930.513,98.058 Z" fill="#004f9f" fill-opacity="1.000" /><path d="M 930.513,98.058 L 298.058,730.513 L 269.487,701.942 L 901.942,69.487 Z" fill="#0059a6" fill-opacity="1.000" /><path d="M 901.942,69.487 L 269.487,701.942 L 240.915,673.371 L 873.371,40.915 Z" fill="#0363ac" fill-opacity="1.000" /><path d="M 873.371,40.915 L 240.915,673.371 L 212.344,644.799 L 844.799,12.344 Z" fill="#086eb2" fill-opacity="1.000" /><path d="M 844.799,12.344 L 212.344,644.799 L 183.772,616.228 L 816.228,-16.228 Z" fill="#0e79b7" fill-opacity="1.000" /><path d="M 816.228,-16.228 L 183.772,616.228 L 155.201,587.656 L 787.656,-44.799 Z" fill="#1584bc" fill-opacity="1.000" /><path d="M 787.656,-44.799 L 155.201,587.656 L 126.629,559.085 L 759.085,-73.371 Z" fill="#1e8fc0" fill-opacity="1.000" /><path d="M 759.085,-73.371 L 126.629,559.085 L 98.058,530.513 L 730.513,-101.942 Z" fill="#2799c4" fill-opacity="1.000" /><path d="M 730.513,-101.942 L 98.058,530.513 L 69.487,501.942 L 701.942,-130.513 Z" fill="#31a3c7" fill-opacity="1.000" /><path d="M 701.942,-130.513 L 69.487,501.942 L 40.915,473.371 L 673.371,-159.085 Z" fill="#3cadca" fill-opacity="1.000" /><path d="M 673.371,-159.085 L 40.915,473.371 L 12.344,444.799 L 644.799,-187.656 Z" fill="#47b5cc" fill-opacity="1.000" /><path d="M 644.799,-187.656 L 12.344,444.799 L -16.228,416.228 L 616.228,-216.228 Z" fill="#52bdce" fill-opacity="1.000" /><path d="M 616.228,-216.228 L -16.228,416.228 L -44.799,387.656 L 587.656,-244.799 Z" fill="#5dc3cf" fill-opacity="1.000" /><path d="M 587.656,-244.799 L -44.799,387.656 L -73.371,359.085 L 559.085,-273.371 Z" fill="#68c8cf" fill-opacity="1.000" /><path d="M 559.085,-273.371 L -73.371,359.085 L -101.942,330.513 L 530.513,-301.942 Z" fill="#72cbcf" fill-opacity="1.000" /><path d="M 530.513,-301.942 L -101.942,330.513 L -130.513,301.942 L 501.942,-330.513 Z" fill="#7ccecf" fill-opacity="1.000" /><path d="M 501.942,-330.513 L -130.513,301.942 L -159.085,273.371 L 473.371,-359.085 Z" fill="#85cece" fill-opacity="1.000" /><path d="M 473.371,-359.085 L -159.085,273.371 L -187.656,244.799 L 444.799,-387.656 Z" fill="#8dcdcc" fill-opacity="1.000" /><path d="M 444.799,-387.656 L -187.656,244.799 L -216.228,216.228 L 416.228,-416.228 Z" fill="#94cbca" fill-opacity="1.000" /></g>
</svg>
["#003e90", "#004698", "#004f9f", "#0059a6", "#0363ac", "#086eb2", "#0e79b7", "#1584bc", "#1e8fc0", "#2799c4", "#31a3c7", "#3cadca", "#47b5cc", "#52bdce", "#5dc3cf", "#68c8cf", "#72cbcf", "#7ccecf", "#85cece", "#8dcdcc", "#94cbca"]
// https://grabient.com/_gE7gHlfslgFEgFEggIgGvgGsgBmgHZgJogOZ?style=linearSwatches&steps=21&angle=315
// cosine gradient palette — https://iquilezles.org/articles/palettes/
const float STEPS = 21.0;
const float ANGLE = 315.0;
vec3 palette(float t) {
vec3 a = vec3(0.315, 0.485, -1.243);
vec3 b = vec3(0.324, 0.324, 2.056);
vec3 c = vec3(0.431, 0.428, 0.102);
vec3 d = vec3(0.473, 0.616, 0.921);
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.315, 0.485, -1.243],
[0.324, 0.324, 2.056],
[0.431, 0.428, 0.102],
[0.473, 0.616, 0.921]
]