03/13/2003
15-462 Graphics I
4
DDA Loop
•Assume write_pixel(int x, int y, int value)
•
•
•
•
•Slope restriction needed
•Easy to interpolate colors
For (ix = x1; ix <= x2; ix++)
{
   y += m;
   write_pixel(ix, round(y), color);
}