[PD] edit IEM slider color

tim vets timvets at gmail.com
Wed Dec 15 22:00:52 CET 2010


2010/12/15 Mathieu Bouchard <matju at artengine.ca>

> On Wed, 15 Dec 2010, tim vets wrote:
>
>  Hi all,I was trying to get a slider ( [hsl] ) to change color gradually as
>> you drag it to the right. I'm using the RGB color subpatch from the slider
>> help patch (inside subpatch 'editing') The strange thing is: when I drag the
>> slider itself, it doesn't follow the RGB values, but it jumps between
>> colors  (the color presets I believe ?).  When I use another slider to
>> change the color of the first slider it does work... Any idea why? (see
>> attached patch) gr, Tim
>>
>
> The problem is because you are not rounding the values to integers : thus
> the red bits bleed all over the green bits and blue bits.
>
> You could also use [#to_iem], which is easy to use, and does this for you.
>
> Ah thanks, with an [int] in there it does seem to work too.
However, I still wonder what's the difference between that and using the
other  slider then?
I also notice that when I change the multiplier to 280, the other slider
starts flipping the colors as well.
With the multiplier at 255, it does work, even though they are not integers
either...?
gr,
Tim

 _______________________________________________________________________
> | Mathieu Bouchard ---- tél: +1.514.383.3801 ---- Villeray, Montréal, QC
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20101215/01f5f421/attachment.htm>


More information about the Pd-list mailing list