[PD] issue with RGB colors in GUI (toggle,bang,...)

Angakok Thoth angakok.thoth at gmail.com
Fri Mar 23 04:09:44 CET 2012


Hi,
I'm having troubles with setting some shades of colors to toggleboxes
(probably even other objects)

For example, this shade of red:

Red=192. Green=0, Blue=0

- (192*65536) - (0 * 256) - (0) = -12582912

If I make a messagebox |color -12582912[
and send it to the togglebox, i get bright blue.
what am I doing wrong? for most shades of colours it seems to be working
OK, but not for this one and not for some others.

I don't know, but also the fact, the PD rewrites my messagebox to |color
-1.25829e+007[ after save, seems suspicious to me. Is PD rounding the
numbers in messageboxes? (the new form seems to be missing few digits)

please help if you can

thanks & regards,

::.:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20120323/59afc98a/attachment.htm>


More information about the Pd-list mailing list