var canvas = document.getElementById("canvas"); var ctx = canvas.getContext("2d"); ctx.beginPath(); ctx.arc(70, 70, 50, Math.PI/8, -Math.PI/8, false); ctx.lineTo(65,70); ctx.closePath(); ctx.strokeStyle = "black"; ctx.fillStyle = "yellow"; ctx.fill(); ctx.stroke(); ctx.beginPath(); ctx.arc(75, 45, 4, 0, 2 * Math.PI); ctx.fillStyle = "black"; ctx.fill(); ctx.stroke(); function creatDots(amountOfDots){ let directionX = 50; for(let i=0;i