Answer the question
In order to leave comments, you need to log in
How to draw circle in canvas with center?
There is this code:
ctx2.beginPath();
ctx2.clearRect(0, 0, canvas.width, canvas.height);
ctx2.arc(canvas.width/2, canvas.height/2, 100, (Math.PI/180)*-35, (Math.PI/180)*35);
ctx2.fill();
ctx2.stroke();
Answer the question
In order to leave comments, you need to log in
ctx2.beginPath();
ctx2.moveTo(canvas.width/2, canvas.height/2);
ctx2.arc(canvas.width/2, canvas.height/2, 100, 340*Math.PI/180, 20*Math.PI/180);
ctx2.closePath();
ctx2.fill();
Something like this.
make triangles on the sides and in the center there is already a simple block with border top and bottom
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question