Cicode Programming Reference > Cicode Function Categories > Color Functions Introduction > MakeCitectColour

MakeCitectColour

Creates a color from red, green and blue component parts.

Note: To define a transparent color, use the label TRANSPARENT.

Syntax

MakeCitectColour(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
MakeCitectColor(255,0,0)
! creates the color white
MakeCitectColor(255,255,255)

See Also

Color Functions