Core Algorithms for Computer Graphics Rendering
Classified in Computers
Written on in
English with a size of 649.74 KB
Circle Generating Algorithms
Circle generating algorithms are fundamental in computer graphics for rendering circles efficiently on raster displays. These algorithms calculate the points on the circumference of a circle and plot them. The most commonly used circle generating algorithms are the Midpoint Circle Algorithm and Bresenham's Circle Algorithm.
Midpoint Circle Algorithm Steps
The following steps outline the basic process for generating points in one octant, which are then mirrored to complete the circle:
- Step 1: Initialization. Set starting coordinates $x = 0$ and $y = r$ (radius). Calculate the initial decision parameter $p = 1 - r$.
- Step 2: Iteration. Repeat the following steps while $x \le y$:
- Plot the current point $(x, y)$ and its octant