benkuper / Chataigne

Artist-friendly Modular Machine for Art and Technology
https://benjamin.kuperberg.fr/chataigne
GNU General Public License v3.0
1.22k stars 58 forks source link

OSCQuery Color issue #200

Open joreg opened 1 year ago

joreg commented 1 year ago

not sure if a bug on your end:

my server exposes a color and viewing its value via the browser i get this, which is correct: grafik

but when viewing my server via chataigne, the color is displayed incorrectly, see: grafik

ie. the hex value is displayed correctly in chataigne, but the sliders are showing something different. any idea how this can even be?

thing is: if, instead of my server i have a second chataigne instance running that exposes a color, i cannot replicate this issue.

joreg commented 1 year ago

update: i believe the way chataigne writes/read the values in the json description, is wrong. according to the specs a color is serialized as:

"JSON string containing hex color notation for an RGBA color (four pairs of hexadecimal values), preceded by a hashtag/pound sign. Opaque white is "#FFFFFFFF", opaque red is "#FF0000FF", transparent blue is "#0000FF00", etc."

but chataign seems to write as "AARRGGBB"?!