Glcolor

The Glcolor function sets a new four-valued RGBA color.   This is often used at the beginning of Actor Scripts to specify the actor's color.

Glcolor( red, green, blue, alpha );

Arguments                    red, green, blue, alpha

New red, green, blue, and alpha  values for the current color.

Current color values are stored in Byte Format, with values between 0 and 255.

For example: 

Glcolor(255,0,0,255) specifies Red.

Glcolor(0,0,0,255) specifies Black.

Glcolor(0,255,0,255) specifies Green.

Glcolor(255,255,0,255) specifies Yellow.

and so on.  This gives a range of 2^24 (more than 16 million) colors.

You may update the current color at any time. In particular, you may call glColor between a call to Begin and the corresponding call to End.

See Also

Begin

End