Given a straight line segment with endpoints of (20,10) and (30,18), verify the plotted line pixels in grid form using the Bresenham line algorithm on Figure Q5. Show your calculations.
Decision parameters for |m| < 1: P0 = 24y - Lx, Pk+1 = Pk + 24y or Pk+1 = Pk
24y - 2Ax
15
14
13
12
10
20 21 22 23 24 25 26
FIGURE Q5
18 marks)
Plot the complete line calculated in Q5(a).