Showing results for 
Search instead for 
Did you mean: 

Functions for decoding RGBA colors


It would be nice if we could have some way to decode RGBA colors. It would be usefull for example when creating components and we want to separate an input color specified with RGBA function into its red, green, blue and alpha values.

Functions like these would be much appreciated:

  • GetRedValue(<some RGBA color>)
  • GetGreenValue(<some RGBA color>)
  • GetBlueValue(<some RGBA color>)
  • GetAlphaValue(<some RGBA color>)

Or maybe just one function that grabs them all:

  • DecodeRGBA(<some RGBA color>, <variable for red value>, <variable for green value>, <variable for blue value>, <variable for alpha value>)


Status: New