Explain how you would adapt the rasterisation algorithm you


Assignment

Question 1:

Explain how you would adapt the rasterisation algorithm you have learned in the lecture that discretises lines to discretely represent the boundary of a circle. What pixels would be filled in to represent a circle centered at (20, 20) with a radius of 5?

Question 2:

Write a complete Bresenham algorithm or pseudocode for drawing a straight line (for both positive and negative slopes), which is generated by a scan-line conversion algorithm. Based on the algorithm, test your algorithm by drawing a line between two points P1 = (5,3) and P2=(0,0).

Request for Solution File

Ask an Expert for Answer!!
Data Structure & Algorithms: Explain how you would adapt the rasterisation algorithm you
Reference No:- TGS02737887

Expected delivery within 24 Hours