Custom RGB colors
2014-02-20, 13:06 (This post was last modified: 2014-05-02, 17:02 by Michael Heidemann.)
2014-02-20, 13:06 (This post was last modified: 2014-05-02, 17:02 by Michael Heidemann.)
I'm trying to find documentation that explains the encoding of custom colors.
http://www.ldraw.org/article/218.html#colours
The above link explains that custom ("direct") colors are defined as 0x2RRGGBB.
But if in MLCad I choose R=64 G=128 B=192 (which should be 0x24080C0) it shows in MLCad/LDView as 0x0455548C and is stored in the .ldr in decimal as 72701068 (which is 0x0455548C).
It seems to be encoded, but where's the specification of the encoding?
http://www.ldraw.org/article/218.html#colours
The above link explains that custom ("direct") colors are defined as 0x2RRGGBB.
But if in MLCad I choose R=64 G=128 B=192 (which should be 0x24080C0) it shows in MLCad/LDView as 0x0455548C and is stored in the .ldr in decimal as 72701068 (which is 0x0455548C).
It seems to be encoded, but where's the specification of the encoding?