benkuper / Chataigne

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

OSCQuery Color issue #200

Open joreg opened 8 months ago

joreg commented 8 months 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 8 months 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"?!