[ANSWERED] Getting colour as values
Fred last edited by Woland
I wanted to try find a way to get RGBA values from the colour maker RGBA actor, I connected it to a calculator just to see and it does output a number. Is it possible to decode those values into separate R G B A values?
Yes, it is possible
Fred last edited by
@woland cool, can't believe I missed it. But My ideas on the number format that comes directly put of the color maker?
mark last edited by
the number format that comes directly put of the color maker?
It is a 32 bit number composed of ARGB - AARRGGBB where each component is a value from 0 to 255 (0x00 to 0xFF).
This patch shows how to manually decode it using the Logical Calculator.