let m = (y1-y0)/(x1-x0); let b = y0+m*x0; for(let x=x0; x <= x1; x++) { let y = m*x + b; SetPixel(x,y); }
let y = y0; for(let x = x0; x <= x1; x++) { y += m; SetPixel(x,y); }