QB64 is a modern extended BASIC programming language that retains QBasic/QuickBASIC 4.5 compatibility and compiles native binaries for Windows, Linux, and macOS.

$COLOR is a metacommand that adds named color CONST in a program.


$COLOR:{0 32}



Adding named color constants for SCREEN 0:

COLOR BrightWhite, Red
PRINT "BrightWhite on red."

Bright white on red.

Adding named color constants for 32-bit modes:

SCREEN _NEWIMAGE(640, 400, 32)
COLOR CrayolaGold, DarkCyan
PRINT "CrayolaGold on DarkCyan."

Using $COLOR with $NOPREFIX:

COLOR C_BrightWhite, C_Red
PRINT "BrightWhite on Red."

See Also