08-04-2022, 12:55 AM
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.
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