( Basic4GL 2.4.3 )
Color - change the text color
color ( red, green, blue )
- red - red component
- green - green component
- blue - blue component
Color() changes the color of the sprite text. It accepts three arguments, each one representing the red, green, and blue (RGB) to mix together in order to create the final color of the text. 0 means to mix in none of that color, and 255 means to mix in the maximum of that color. Thus, each argument can only be a number from 0 to 255.
Once changed, the text will remain this color until it is changed again.
Example of Use
The below code prints out words in each of the three basic colors.
color(255,0,0) printr "red" color(0,255,0) printr "green" color(0,0,255) printr "blue"
This page has been recommended for cleanup, integration, etc.