Given a parameter r2, where the equation x^2 + y^2 = r2 holds. Return a list of points that
1. x and y are both integers
2. fits the circle equations.
Drawing a circle on the screen is a little complex than drawing a line. There are two popular algorithms for generating a circle − Bresenham's Algorithm and Midpoint Circle Algorithm. These algorithms are based on the idea of determining the subsequent points required to draw the circle. Let us discuss the algorithms in detail −
The equation of circle is where r is radius.
Read full article from Buttercola: Draw a Circle
No comments:
Post a Comment