MakeColour
- Last UpdatedJul 18, 2023
- 1 minute read
Creates a color from red, green and blue component parts.
Note: To define a transparent color, use the label TRANSPARENT.
Syntax
MakeColour(nRed,nGreen,nBlue)
nRed:
The color value for red, from 0-255
nGreen:
The color value for green, from 0-255
nBlue:
The color value for blue, from 0-255
Return Value
An integer that is an encoded representation of the color created.
Examples
! creates the color red
MakeColour(255,0,0)
! creates the color white
MakeColour(255,255,255)
Note: For backwards compatibility, you can refer to this function using the alias "MakeCitectColour".