1. What pixels will be marked
in drawing a circle center (100,90) and radius 10? using Bresenham's algorithm
Ans:
Take x=0,y=r=10,d=3-2r=3-2*10=-17
Decision variable
(d)
|
x
|
y
|
Point with Center
(0,0)
|
Point with Center
(100,90)
|
0
|
10
|
(0,10)
|
(100,100)
|
|
-17
|
1
|
10
|
(1,10)
|
(101,100)
|
-11
|
2
|
10
|
(2,10)
|
(102,100)
|
-1
|
3
|
10
|
(3,10)
|
(103,100)
|
13
|
4
|
9
|
(4,9)
|
(104,99)
|
-5
|
5
|
9
|
(5,9)
|
(105,99)
|
17
|
6
|
8
|
(6,8)
|
(106,98)
|
11
|
7
|
7
|
(7,7)
|
(107,97) |