API color to RGB
Hi,
I'm discovering API for live, I'm observing the color of the track using [live.observer color] and I get an integer like this '12349846'
How to convert it to RGB ?
Here is a simple patch with name, arm, color observer
Max Patch
Copy patch and select New From Clipboard in Max.
Max Patch
Copy patch and select New From Clipboard in Max.
Thx, this the result of this part of the doc :
"The RGB value of the track's color in the form 0x00rrggbb or (2^16 * red) + (2^8) * green + blue, where red, green and blue are values from 0 (dark) to 255 (light). "
Without more explication or your patch I could not understand it.
Thanks 11OLSEN