Author Topic: Colorsets  (Read 631 times)

What do the values mean in a colorset? Obviously they're colors, but it doesn't make any sense.

I see: 0.900 0.000 0.000 1.000 and 230 87 20 255

Why so different?

I suppose the 4th number is transparency of some sort?

1.000 would be the same as 255, the only difference is one is a percentage, and the other is hex appearing as dec. (00 - FF converted to 0 - 255)

Edit: and the 4th number is transparency.

Oh, why are two different formats used?
They work interchangeably all over BL, right?

Just in colorsets.
One line could be:
236 64 94 90
and the one right after:
0.989 0.690 0.355 1.000

Tom

I think you can get slightly more specific colors with 0-255 RGB.

There are more possibilities when using 0.000-1.000.
0.000-1.000 = 1001 possible values for each.
0-255 = 256 possible values for each.

RED GREEN BLUE TRANS

000 200 100 255


That's what they mean if I remember correctly.

RED GREEN BLUE TRANS

000 200 100 255


That's what they mean if I remember correctly.
I think I knew what RGB was for years.

I didn't understand the decimal part, I really just needed a name for it, and where I can use it.

Tom

There are more possibilities when using 0.000-1.000.
0.000-1.000 = 1001 possible values for each.
0-255 = 256 possible values for each.
Yeah but what if the colors are limited to 16 bit.

I think I knew what RGB was for years.

I didn't understand the decimal part, I really just needed a name for it, and where I can use it.
You don't need to use the decimal format.

Oh, why are two different formats used?
They work interchangeably all over BL, right?
Oh, why are two different formats used?
They work interchangeably all over BL, right?

Yeah but what if the colors are limited to 16 bit.
You don't need to use the decimal format.

Are you sure?

Tom

Are you sure?
You can use 0-255 or 0-1 for colorsets. You can even mix like the default did.