Page 1 of 1

Colour picker out OSX format

Posted: Fri Feb 22, 2019 15:05
by fred_dev
Does anyone know the data format and types that the colour picker uses over OSC? When I analyse the message I see the type is 'r'. I want to send the info to my won software made with openframeworks, and I cannot decide this message. I can use the RGB sliders to send a colour, but the RGB values do not update when the colour picker is used. It would be great to be able to access this data easily. I am guessing it communicates fine between resolume systems, but talking to other things is also nice.

Cheers

Fred

Re: Colour picker out OSX format

Posted: Tue Feb 26, 2019 10:09
by Zoltán
You can find the supported OSC type tags here: https://resolume.com/support/en/osc#type-tags-and-range
OSC color values have the type tag r followed by an unsigned integer representing a 32 bit RGBA color. You can write a color as an int by bitshifting its RGBA values.

Re: Colour picker out OSX format

Posted: Tue Feb 26, 2019 13:37
by edwin
I just checked and the openframeworks OSC implementation supports Color messages.
ofxOscArgRgbaColor
https://openframeworks.cc///documentati ... RgbaColor/