Content deleted Content added
m Reverted 1 edit by 117.240.29.3 (talk) to last revision by KH-1 (TW) |
m →Program: format code |
||
Line 56:
dx = (x2 - x1);
dy = (y2 - y1);
if (abs(dx) >= abs(dy))
step = abs(dx);
else
Line 65:
y = y1;
i = 1;
while (i <= step) {
putpixel(x, y, 5);
x = x + dx;
|