Canvas Context Draw Circle. CanvasRenderingContext2DclearRect Sets all pixels in the rectangle defined by starting point x y and size width height to transparent black erasing any previously drawn content. Const centerX canvaswidth 2.
Const radius 70. Var begin 0. Const canvas document.
To draw arcs or circles we use the arc or arcTo methods.
Arc 100 75 50 0 2 Math. Drawing Circles An arc is a part of a circle. Draw transparent circles for let i. Var begin 0.