Talk:PROJ FLASH COLOR

From EDukeWiki
Revision as of 06:59, 27 March 2012 by Diaz (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

How exactly is color determined from the number? Is there a way to distinguish intensity?

-Hendricks266 15:28, 23 December 2009 (PST)

According to TX:

The color is set by adding the red value plus the green value shifted left 8 bits plus the blue value shifted left 16 bits. So, RGB of 100, 100, 100 would be "6579300" since that's 100 + 100<<8 (25600) + 100<<16 (6553600). 150, 100, 255 would be 16737380.

--Diaz (talk) 06:59, 27 March 2012 (PDT)