Blog Post

Small Basic Blog
1 MIN READ

Small Basic - TextWindow Colors

Ed Price's avatar
Ed Price
Former Employee
Feb 13, 2019
First published on MSDN on Mar 12, 2016

Authored by Ed Price


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




Published Feb 13, 2019
Version 1.0
No CommentsBe the first to comment