Topic 4 Circle Generating Algorithms
Topic 4 Circle Generating Algorithms
Summary
• The constants 2Δy and 2Δy − 2Δx are calculated once for each line
to be scan converted.
• Hence the arithmetic involves only integer addition and subtraction
of these two constants.
Example
• To illustrate the algorithm, we digitize the line with endpoints
(20,10) and (30,18). This line has slope of 0.8, with
Δx = 10
Δy =8
• The initial decision parameter has the value
p0 = 2Δy − Δx = 6
• and the increments for calculating successive decision parameters
are
2 Δy = 16
2 Δy - 2 Δx = -4
• We plot the initial point (x0 , y0)=(20,10) and determine successive
pixel positions along the line path from the decision parameter as
Loading frame buffer
• When straight line segments and other objects are scan converted
for display with raster system, frame buffer position must be
calculated. A setpixel procedure accomplishes storage of intensity
values of pixels in corresponding addresses in the buffer array.
Line functions
• Graphics system polyline generation