MidPoint Circle Drawing Algorithm

1. Insert radius r and center (xc, yc)
and obtain the first point on the circumference of a circle centered on the origin as (x0, y0) = (0,r) [ initial starting positions]
2. Calculate the initial value,
P=1.25-r
do
{
Plot(x,y)
if(P< 0)

{
x=x+1
y=y
P=P+2x+1
}
else
{
x=x+1
y=y-1
P=P+2x-2y+1
}
}
3. While(x< y) Determine symmetry points in other screen octanes.

4. STOP

Recommended Posts:

Computer Graphics
    1. Display Devices in Graphics
    2. Raster Scan Display
    3. Random Scan Display
    4. Input Devices
    5. Output Devices
    6. Types of Printer
    7. Pixel and Resolution in Graphics
    8. Aspect Ratio
    9. Refresh Rate and Interlacing
    10. Digital Differential Analyzer (DDA) Algorithm
    11. Bresenham’s Line Algorithm
    12. Bresenham’s Circle Drawing Algorithm
    13. Difference Between DDA and Bresenham’s Line Algorithm
    14. MidPoint Circle Drawing Algorithm
    15. Anti-Aliasing in Graphics