09-21-2023, 12:33 AM
(This post was last modified: 09-21-2023, 12:34 AM by James D Jarvis.)
Why am I seeing the colored spaces in this program? Shouldn't _printmode _keepbackground be prohibiting this?
Code: (Select All)
Screen _NewImage(512, 384, 32)
rootpath$ = Environ$("SYSTEMROOT") 'normally "C:\WINDOWS"
fontfile$ = rootpath$ + "\Fonts\comic.ttf" 'TTF file in Windows
style$ = "" 'font style is not case sensitive
f& = _LoadFont(fontfile$, 16, style$)
_Font f&
Line (1, 1)-(510, 382), _RGB32(50, 50, 50), BF
_PrintMode _KeepBackground
Color _RGB32(255, 255, 255), _RGB32(170, 70, 70)
Do
Input txt$
Print _PrintWidth(txt$), txt$
Loop Until txt$ = "END"