Game Development Community

RGB Colours....

by Bill Henderson · in Torque Game Engine · 03/23/2002 (11:43 am) · 4 replies

I was just wondering how the rgb values in the GUI editor, etc work. I got the impression it goes Red, Green, Blue, Alpha.

Also does 1.000 mean 255 (as in 255 out of 255). Are they fractional values?

#1
03/23/2002 (1:03 pm)
Yes. (1.0 1.0 1.0 1.0) = 255 red, 255 green, 255 blue and 100% alpha (fully solid)

(0.5 0.5 0.5 0.5) = medium gray that is 50% transparent.
#2
03/26/2002 (6:23 pm)
hmmm, I thought it was:

(1.0 1.0 1.0 1.0) = 255 red, 255 green, 255 blue and 100% alpha
#3
03/27/2002 (12:29 am)
Yep i think 1 is for 100% alpha.... I mean I hope ;)
#4
03/27/2002 (1:05 am)
Yeah that was a dumb typo on my part.

1.0 1.0 1.0 = White
0.0 0.0 0.0 = Black