11-14-2022, 06:49 PM
(11-14-2022, 08:47 AM)PhilOfPerth Wrote: Can someone please elaborate a bit on the m x,y (and its related +/- options) in the draw command? It doesn't get a mention (that I can find) in the Help file, and the Wiki one is pretty unclear. How is it fitted into a draw string, and does it need parentheses, or commas etc?
Sample code if you want to play around:
Code: (Select All)
screen _newimage(200, 200, 12)
xf = 150
yf = 150
do
x = int(rnd*200)
y = int(rnd*200)
draw "B M" + str$(x) + "," + str$(y)
draw "d15 r15 u15 l15 m " + str$(xf) + "," + str$(yf)
_display
_delay 1.25
loop