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?
About the author
Torque 3D Owner Eric Forhan
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).