Thanks for the tip! That function looked like a lot, so I came up with this:
// hexCode: '#ffffff' -> [255,255,255]
function hexToRGBArray(hexCode){
let r = parseInt(hexCode.substr(1,2),16)
let g = parseInt(hexCode.substr(3,2),16)
let b = parseInt(hexCode.substr(5,2),16)
return [r,g,b]
}
Which you could use like this:
let [r,g,b] = hexToRGBArray('#ffffff')
runtime.callFunction('doColorStuff', r, g, b)
And in the function in your event sheet, you'd use Set Color to: rgbEx255(paramR, paramG, paramB)