Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
draw command curious behavior
#1
I may have missed something somewhere in notes on rendering order because the behavior of the attached program surprised me.
I'm using the draw command to draw a simple shape as a sprite of sorts and it will overprint an image drawn with the other graphics commands but it will not overprint text. How the fill interacts is interesting as well. It just doesn't seem consistent with other drawing commands. 

Code: (Select All)
Screen _NewImage(800, 600, 256)
dd$ = "m+194,-40m+54,+89m-182,+35m-66,-84bm+134,+31 P12,15 c15"
Cls
_PrintMode _KeepBackground
For x = 0 To 300 Step 10
    _Limit 10
    Cls
    Line (100, 100)-(200, 200), 13, BF
    _PrintString (100, 100), "background image"
    Locate 11, 16: Print "XXX"
    dt$ = "c15 bm" + Str$(x) + ",100"
    Draw dt$
    Draw dd$
    _Display
Next
Reply


Messages In This Thread
draw command curious behavior - by James D Jarvis - 08-04-2022, 12:55 AM
RE: draw command curious behavior - by bplus - 08-04-2022, 02:19 AM
RE: draw command curious behavior - by Cobalt - 08-04-2022, 02:38 AM



Users browsing this thread: 2 Guest(s)