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
- Small Basic: Color
- Small Basic: IDE Colors
- Small Basic Getting Started Guide: Appendix B: Colors
- Small Basic - About Hexadecimal Pen and Brush Colors
- Small Basic Curriculum: Lesson 1.2: Statements, Properties, and Operations
- Small Basic - The Properties of the TextWindow Object
- Small Basic Reference Documentation: TextWindow Object