DDA(x0,y0,x1,y1) m = (y1-y0)/(x1-x0) j = y0 for i <-x0 to x1 do setPixel(i,round(j),color) j <- j + m i <- i + 1