1// grab the canvas + paintbrush
2var canvas = document.getElementById("ring");
3var ctx = canvas.getContext("2d");
4
5// draw the circus ring floor
6ctx.fillStyle = "#fde68a";
7ctx.fillRect(0, 210, 320, 70);
8
9// draw the platform box
10ctx.fillStyle = "#0d9488";
11ctx.fillRect(210, 160, 90, 50);
12
13// draw the juggling ball (circle)
14ctx.beginPath();
15ctx.arc(160, 110, 25, 0, 6.28);
16ctx.fillStyle = "red";
17ctx.fill();
18
19// draw the big top tent (triangle)
20ctx.beginPath();
21ctx.moveTo(50, 210); ctx.lineTo(95, 90); ctx.lineTo(140, 210);
22ctx.closePath(); ctx.fillStyle = "#ef4444";
23ctx.fill();