Small Basic - TextWindow Colors

In Small Basic, you can change the background and foreground colors of the text window's output text using the BackgroundColor and ForegroundColor properties of TextWindow.

You specify the desired color by number or by name. The permissible values are shown here:

Figure: The available TextWindow colors

For example, to output your text in yellow, you can use the word "Yellow" or the number 14:

TextWindow.ForegroundColor = "Yellow"  ' Uses color name

TextWindow.ForegroundColor = 14              ' Uses color number

Have a Small and Basic week!

   - Ninja Ed & Majed Marji

See Also