Default colorset uses two formats?

Author Topic: Default colorset uses two formats?  (Read 1321 times)

Ever looked at the default colorset? No? Here's the first color, red.
Code: [Select]
0.900 0.000 0.000 1.000This isn't the 0-to-255 integers-only color format I know how to work with and that most programs use. How do I convert it into that format?

multiply by 255 and round

one format is 0-255
the other is 0.0-1.0

ColorI(ColorF color);

Then paste the result into the colorset

Not really sure why it's like that but there's two types of color systems, ColorI(0-255) and ColorF(0-1) - A simple way to think of this is Color Integer and Color Float, in some situations one of them is better than the other, but one of my guesses is that it's much easier to use ColorF if you're doing something like "0.5 0.5 0.5 1" instead of trying to do something like "140 140 140 255"


Either way in general it doesn't matter which one you use as long as you know what you're doing.


Yeah, it really is confusing how the default colorsets use two different color indexes. But the 0.0-0.1 index is also used by the avatar colorset.

multiply by 255 and round
Doing this is the best way to get the color in a rage of 0-255.
And if you divide by 255 you'll get the the matching color for your avatar.