<div></div>
<div></div>
<div></div>
<div></div>
@import url("https://fonts.googleapis.com/css2?family=Exo:wght@600&display=swap");
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
width: 100vw;
min-height: 100vh;
font-family: "Exo", Arial, sans-serif;
background-color: #222;
color: #fff;
display: grid;
grid-template-columns: repeat(4, 40vh);
grid-template-rows: 40vh;
padding: 10px;
gap: 10px;
font-size: 1.5rem;
place-content: center;
}
div {
border-radius: 50%;
background-image: conic-gradient(magenta 40%, aqua 0 70%, red 0);
}
div:nth-of-type(2) {
background-image: conic-gradient(
red 20%,
yellow 0 40%,
lime 0 60%,
aqua 0 80%,
blue 0
);
}
div:nth-of-type(3) {
background-image: conic-gradient(
red 10%,
yellow 0 20%,
lime 0 30%,
aqua 0 40%,
blue 0 50%,
magenta 0 60%,
red 0 70%,
#09f 0 80%,
#40f 0 90%,
#aee 0
);
}
div:nth-of-type(4) {
background-image: conic-gradient(
#09f 5%,
#f36 0 10%,
#09f 0 15%,
#f36 0 20%,
#09f 0 25%,
#f36 0 30%,
#09f 0 35%,
#f36 0 40%,
#09f 0 45%,
#f36 0 50%,
#09f 0 55%,
#f36 0 60%,
#09f 0 65%,
#f36 0 70%,
#09f 0 75%,
#f36 0 80%,
#09f 0 85%,
#f36 0 90%,
#09f 0 95%,
#f36 0
);
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.