bagginsbill opened this issue on Feb 01, 2009 · 207 posts
bagginsbill posted Thu, 16 April 2009 at 9:02 AM
Ummm.
IColor(255, 0, 0) and Color(1, 0, 0) are identical.
The difference is merely a unit change - like Fahrenheit versus Celsius.
0 degrees C is not different from 32 degrees F, just because one number is 0 and the other number is 32.
The reason to anti-GC or not has nothing to do with how you typed it in. It has to do with what you're trying to represent and how you'll use it.
For example, if you're trying to use a color multiplier that decreases green by half, you would NOT want to convert that. That isn't a color that has a specific appearence when you read it off as an RGB value. Rather, it is a tuple that has 3 components, each of which is to be used as a multiplier, so the correct value is Color(1, .5, 1) or IColor(255, 127.5, 255) - it doesn't matter how you say it, it matters how you arrived at it and how you'll use it.
If you arrived at a color by choosing from various values on the basis of how they look on the screen in sRGB color space representation, then you want to convert that to linear (anti-GC) before you use it.
Renderosity forum reply notifications are wonky. If I read a follow-up in a thread, but I don't myself reply, then notifications no longer happen AT ALL on that thread. So if I seem to be ignoring a question, that's why. (Updated September 23, 2019)