Game Development Community

Color Values

by Ryan Armstrong · in Torque Game Engine · 08/17/2002 (4:48 pm) · 3 replies

Hey I apologize in advance if this question has already been asked and answered, but I just got into using the editor, and when editing any objects color, it asks for 4 numerical values. I was wondering, what does each value stand for? I am assuming the first three are the RGB values but I dunno what the last one? What is the correct meaning for each?

#1
08/17/2002 (5:05 pm)
Red Green Blue Alpha

The Alpha is usually associated with transparency.

Also, you will often need to have a decimal value for the colors, rather than just the normal RGB integers. To do that, divide each by 256. So, pure green would be 0/256 256/256 0/256 or better: 0.0 1.0 0.0 (and then 4th is the alpha, of course).
#2
08/17/2002 (5:28 pm)
Ok that is what I figured it was, just making sure. Thanks for your help.
#3
08/17/2002 (5:36 pm)
My guess would be Alpha. For the transparancy of the pixel.