You actually don't need a SYNC after every command (in DBC 1.20 a sync seems to be necessary immediately fter set text size though or internally the values don't update). Usually place SYNC at the end of a series of commands when you want everything to be refreshed or updated. Also, SET DISPLAY MODE should be the first command called as it will reset your pen colors and erase your textures. This may be the cause of your color problems but read on for other possibilites. Here's your code revamped a bit:
`Basic Setup
set display mode 1024,768,32
sync on
sync rate 60
rem sync rate can have any value from 0 to 1000
rem this represents how many times to redraw the screen in a second
rem a setting of zero refreshes the screen as fast as possible
rem specific to the computer it's run on (up to 1000 fps)
hide mouse
ink 0, rgb(255,255,255)
set text font "Times New Roman",1
set text size 15
sync
Quote: "And I end up getting a blue-colored screen that when I input has white around the text"
The blue colored screen is either the result of a CLS command followed by a color command representing blue (for example rgb(0,0,128) ) or you have created a 3D object and the screen color defaults to blue.
The black on white background is do to two things:
1. Somewhere you must've used the command SET TEXT OPAQUE
2. This commands from your code : ink 0, rgb(255,255,255)
If you set the text to to opaque that means the text displayed will be colored in the pen color on top of the background. The INK command takes the inputs INK <pen color>,<opaque text background>
Unless you specifically want your text to be displayed with it's own background color, don't use SET TEXT OPAQUE and use ink as
INK <pen color>,0
The <pen color> also applies to all drawing using DOT, LINE, BOX, ELLIPSE, or CIRCLE (I think that's all of the 2d drawing commands.)
Enjoy your day.