Let’s say we want to draw a line from 100,100 to 200,200.
Your slope is going to end up being 1, so all you need is:
FOR I = 0 TO 100
PSET (X1 + I, Y1 + I * Slope)
NEXT
^ Each time your X-coordinate increases a step, you increase the Y-coordinate by the slope.
You’d plot at:
100,100
101,101
102,102
...
198,198
199,199
200,200
*Im not at a PC tonight, but I’ll write you an actual demo tomorrow, if no one else gets around to it before then. ;)