internal colours
-
How do I convert Colours between items in Hise?
In the "Property Editor" I have this,#FFA9A190
I know that I can convert it to
0xFFA9A190
for use in scripts but If i use this function:
c.get("itemColour");
I'll get this
4289307024
Is there a table somewhere, so that I can convert it to hex? and vice versa.
-
@ulrik set one of the colours of you UI widget - say you want a specific text colour, so set that in HISe using the colour picker - it will show up as a Hex value . Now select the UI widget in the component interface and press Control-J
Your text colour shows up like this:
"textColour": "4294951115",
-
@Lindon Thank you for the tip,
however it will not help in this case.
I want to edit the colour values with a slider, I have set upp a conversion table between RGB and Hex values and that works fine, but I'm not able to go from Hex or RGB to internal values and vice versa -
@ulrik what about if you use
parseInt(hexvalue)
? -
@d-healey hmm ok I'll try that, thanks!