ColorPicker Advanced Demo
The ColorPicker component has some advanced methods for getting and setting color values.
setRGB(r, g, b)lets you set each channel with values from 0 to 255.setNumber(num)lets you set the value with a single 24-bit number.getNumber()returns a 24-bit number representing the color.red,greenandblueproperties allow you to get the value of any channel in the form of a number from 0 to 255.setRandom()sets the color to a random color value.
This demo shows all of these features.
Source: