Now that you can draw a line, you can then use canvas.drawCircle to draw a circle, which will let you pass in several parameters, such as center coordinates, radius, etc., and then you only need to calculate it based on the position of the line. Just find out the coordinates of your circle center and the appropriate radius, and you’re good to go
There are four parameters for drawing a circle, the first two are the coordinates of the center of the circle, the third is the radius, and the last one is the brush.
Now that you can draw a line, you can then use canvas.drawCircle to draw a circle, which will let you pass in several parameters, such as center coordinates, radius, etc., and then you only need to calculate it based on the position of the line. Just find out the coordinates of your circle center and the appropriate radius, and you’re good to go
Can be used
There are four parameters for drawing a circle, the first two are the coordinates of the center of the circle, the third is the radius, and the last one is the brush.