ALGORITHM OF BRESENHAM’S CIRCLE DRAWING
:
Begin :
Read r
, (xc ,
yc)
p =
3-2r , x = 0 , y = r
while(x <= y)
{
Plot(x,y)
x = x+1
if (P < 0)
{
P = P + 4x + 6
}
else
{
y = y – 1
p = p + 4x -4y +10
}
End of while
End
No comments:
Post a Comment