Computer Graphics Lec - 2
Computer Graphics Lec - 2
(Xk,Yk)
Yk
(Xk+1,Yk+1)
Either
Xk+1
(Yk)
or
(Yk-1)
Yk 1/2
Yk - 1
Xk
Xk+1
5.
6.
7.
Input radius r and circle centre (a, b) and find the first point on the
circumference of a circle centered as origin (X0,Y0) = (0,r)
To calculate initial value of the decision parameter
P0 = 5/4 r 1 r
At each Xk position starting at k = 0 perform the following test : If Pk < 0, then the next point is (Xk+1,Yk) and
Pk+1 = Pk + 2.X K+1 + 1
otherwise, the next point along the circle is (Xk+1, Yk+1) and
Pk+1 = Pk + 2.Xk+1 2.Yk+1 + 1
= Pk + 2.(Xk+1 Yk+1) + 1 where Xk+1 = XK+ 1
Yk+1 = YK - 1
Determine the Symmetry points
Move each calculated pixel position onto the circular path,centered on
(a, b) and plot the co ordinate values as x = x+a and y = y+b
Repeat the steps 3 through 5 until x y