08-29-2023, 03:09 AM
And the instant I posted that last one, wait a minute ...
Problem solved with a little security (last two lines added to bLine):
Problem solved with a little security (last two lines added to bLine):
Code: (Select All)
Sub bLine (x1, y1, x2, y2)
dx = x2 - x1
dy = y2 - y1
dist = Sqr(dx * dx + dy * dy)
dx = dx / dist
dy = dy / dist
For i = 0 To dist
PSet (x1 + dx * i, y1 + dy * i)
Next
Pset (x1,y1)
Pset (x2,y2)
End Sub