-
• #2
No, I'm afraid there is nothing built-in for this. The colour is RGB565 so you can decode it like this though:
r = (col>>11)&0x1F; g = (col>>5)&0x3F; b = col&0x1F;
No, I'm afraid there is nothing built-in for this. The colour is RGB565 so you can decode it like this though:
r = (col>>11)&0x1F;
g = (col>>5)&0x3F;
b = col&0x1F;
I need an array that gives me [R, G, B] from g.theme.fg2. I couldn't find any function that does this in the API Reference.
Any thoughts on how to do this?