mohammadKarimi / Riter

Riter is not a pen, it's your mind.
MIT License
140 stars 8 forks source link

Modified Code to Use Click Point as the Circle's Outer Edge #102

Closed mohammadKarimi closed 3 weeks ago

mohammadKarimi commented 3 weeks ago

Is your feature request related to a problem? Please describe.

To adjust your circle drawing so that the initial click point represents the circle's outer edge (rather than its center), you need to change how you calculate the radius and position of each point on the circle. Specifically, instead of using the clicked point as the circle's center, use it as a point on the circumference, and calculate the center accordingly.