5 Replies Latest reply on Jan 29, 2010 12:11 PM by kglad

    How to get RGB color values out of the color picker component?

    treugolnik

      How to get RGB color values out of the color picker component?

       

      trace (cp.selectedColor);

      returns something like:

      16750950

       

      trace (key2cp.hexValue);

      returns:

      ff9966

       

      I am looking for RGB, for example, 0.5 0.5 0.5, for a gray color. 

      Is there a chance the RGB parameters are hidden somewhere or is there a conversion function at least?

       

      Thank you.