Professional Documents
Culture Documents
ASSIGNMENTGRAFIX
ASSIGNMENTGRAFIX
1. Draw a straight line between A(10,12) and B(20,20) using DDA algorithm. 2. Draw a straight line between A (20,20) and B (10,12) using DDA algorithm. 3. Draw a straight line between A(10, 20) and B(20,12) using DDA algorithm. 4. Draw a straight line between A(12,10) and B(20,20) using DDA algorithm. 5. Draw a straight line between A(10,12) and B(20,20) using Bresenhams Line Algorithm. 6. Draw a straight line between A(20,20) and B(10,12) using Bresenham`s Line Algorithm. 7. Draw a straight line between A(10, 20) and B(20,12) using Bresenham`s Line Algorithm. 8. Draw a straight line between A(12,10) and B(20,20) using Bresenham Line Algorithm. 9. Draw a straight line between A(-3, 3) and B(5, -2) using Bresenham Line Algorithm. 10. Calculate the intermediate pixel positions of a line with end points (55,22) and (49,14) and plot the graph. 11. Digitize the line with end points (20, 10) and (30, 18) with Bresenham line drawing algorithm. 12. Write an algorithm for mid-point circle generation and then using it produce sequence of at least five points along the circumference of circle with radius = 20 and centered at (50,50). 13. Draw a circle with center (20, 30) and r=7. Use mid-point algorithm to draw a circle. 14. Draw a circle with center (0,0) and r=10. Use mid-point algorithm to draw a circle. 15. Draw an ellipse with major axis =10 and minor axis= 8, centering at (0,0) using mid point ellipse algorithm. 16. Using mid-point ellipse algorithm draw an ellipse with center (20 ,30) and major axis= 10, minor axis =6. 17. Using mid-point ellipse algorithm draw an ellipse with center (20 ,30) and Rx=8 and Ry=6.