Page 68 - DCAP313_LAB_ON_COMPUTER_GRAPHICS
P. 68
Lab on Computer Graphics
Notes 4.5 Keywords
Circumference: The circumference is the distance around the circle.
Counter Clockwise: Circular motion can occur in two possible directions. A clockwise (typically
abbreviated as CW) motion is one that proceeds in the same direction as clock’s hands: from
the top to the right, then down and then to the left, and back to the top. The opposite sense of
rotation or revolution is counterclockwise (CCW).
Curve: A curve (also called a curved line in older texts) is, generally speaking, an object similar
to a line but which is not required to be straight. This entails that a line is a special case of curve,
namely a curve with null curvature.
Dragging Death: A dragging death is a death caused by someone being dragged behind or
underneath a moving vehicle, whether accidental or as a deliberate act of murder. If it is homicide,
then it is also known as a dragging murder.
Pixel: A pixel is a physical point in a raster image, or the smallest, addressable element in a
display device; so it is the smallest, controllable element of a picture represented on the screen.
4.6 Review Questions
1. What is the circle algorithm?
2. Explain the properties of a circle.
3. What is the midpoint circle drawing algorithm?
4. Write an algorithm implement midpoint circle drawing.
5. Write midpoint circle drawing algorithm in C.
6. What is the advantage and disadvantage of midpoints circle drawing algorithm?
7. What is the Bresenham’s circle drawing algorithm?
8. Write a Bresenham’s circle drawing algorithm using C programming.
9. Differentiate between midpoint circle drawing and Bresenham’s circle drawing.
10. Explain the advantages of Bresenham’s circle drawing.
Answers for Self Assessment Questions
1. (b) 2. (a) 3. (c) 4. (b) 5. (a)
6. (b) 7. (a) 8. (c) 9. (b) 10. (c)
11. (b) 12. (a) 13. (a) 14. (b) 15. (a)
4.7 Further Readings
Computer Graphics Techniques, by David F. Rogers
Computer Graphics, C Version, by Hearn
http://www.google.co.in/#q=dda+circulars+computer+graphics&html
62 LOVELY PROFESSIONAL UNIVERSITY