RGB or CMYK

Author Topic: RGB or CMYK  (Read 2957 times)



CMYK is only used for printing as far as I know.

Also that in most cases, you have to use decimal values for the RBGA values, in other words, divide by 255 if you are using the 0-255 scale, and are changing it to Torque's 0-1 color scale...
But sometimes you don't have to use it, but I'm not sure. I've seen both scales in various places. Depends on what you're doing.

The colorset file takes 0-255 and 0-1, most others like setNodeColor only use 0-1.

so... its RGB but with 1 and 0?

so... its RGB but with 1 and 0?
No, BETWEEN 1 and 0.
Decimals.

If you have 0-255 RBGA colors, just divide all of the numbers by 255 for it's decimal equivalent.

For example: RBGA 163 97 172 255 (a dark-ish purple) converted into the 0-1 scale would become:
0.6392 0.3803 0.6745 1

Rounded, of course. The decimals can be really long, but you only need the first 2/3/4 parts of it to get the color...

or you can use 255Red 255Green 255Blue 255Alpha
Instead of decimals


Wtf?
erm i meant instead of using decimals like you are all suggesting
use 1 to 255.
much faster.

1-255 doesn't work with anything apart from the color files as far as I know.

1-255 doesn't work with anything apart from the color files as far as I know.
Exactly.
Gikon, STFU.

Ok problem solved tx guys.
For those ppl who dont get it heres a problem.



R / 255 = A
G / 255 = B
B / 255 = C
______________________
   RGB alpha =  A B C 1

1-255 doesn't work with anything apart from the color files as far as I know.
Exactly.
Gikon, STFU.
Yea its not like i know what am doing, considering i use that ducking stuff all the damn time >: (

Yea its not like i know what am doing, considering i [make] ice cream all the damn time >: (