I've been playing with the DRAW command lately. It's such a powerful command, and one I haven't fully explored/learned. I know you can set the graphics cursor position using PSET, and also using commands in the DRAW statement, but I was wondering how to get where the current graphics cursor position DRAW is at? For instance, in this code below how would I know when DRAWs graphics cursor position goes off screen here so I could reset it?
(BTW, @dbox, running this in QBJS, the output is different)
- Dav
(BTW, @dbox, running this in QBJS, the output is different)
- Dav
Code: (Select All)
Screen _NewImage(600, 600, 32)
Dim p, p$, ang, a$ '<- for QBJS compat
Do
p = p + .05
p$ = "D" + Str$(p)
ang = ang + 10
a$ = "TA" + Str$(ang)
Draw p$ + a$
_Limit 100
Loop