Color() (Basic4GL)


( 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.

printr "red"
printr "green"
printr "blue"

This page has been recommended for cleanup, integration, etc.

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution 2.5 License.