Solution
A color in LabVIEW is represented by a 32-bit integer. You can separate this 32-bit integer into four U8 integers:
- Transparency, where 0 is solid and 1 is transparent. Please note that most color boxes will not accept a transparent input - you will need to keep this first integer as 0 to result in a valid color.
- Red (any integer from 0 to 255)
- Green (any integer from 0 to 255)
- Blue (any integer from 0 to 255)
Another helpful representation of a color number in LabVIEW is using a HEX-formatted display. In this case, the color will be represented as AABBCC, where AA, BB and CC respectively represent the hexadecimal representation of the red, blue and green components of the color box.