I have a spectrum palette and a text box. The text box contains hex value of selected color and is editable. I need to be able to set a color in the palette by providing an appropriate hex value. That is, if I enter a hex value such as #000000, the pointer in the palette should point at black color. How do I achieve this?
Also, instead of hex I should also be able to get it working for R-G-B values.
How can I achieve the two cases in spectrum?