<br><br><div class="gmail_quote">2010/12/15 Mathieu Bouchard <span dir="ltr">&lt;<a href="mailto:matju@artengine.ca">matju@artengine.ca</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<div class="im">On Wed, 15 Dec 2010, tim vets wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi all,I was trying to get a slider ( [hsl] ) to change color gradually as you drag it to the right. I&#39;m using the RGB color subpatch from the slider help patch (inside subpatch &#39;editing&#39;) The strange thing is: when I drag the slider itself, it doesn&#39;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<br>


</blockquote>
<br></div>
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.<br>
<br>
You could also use [#to_iem], which is easy to use, and does this for you.<br>
<br></blockquote><div>Ah thanks, with an [int] in there it does seem to work too.</div><div>However, I still wonder what&#39;s the difference between that and using the other  slider then?</div><div>I also notice that when I change the multiplier to 280, the other slider starts flipping the colors as well. </div>

<div>With the multiplier at 255, it does work, even though they are not integers either...?</div><div>gr,</div><div>Tim</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">


 _______________________________________________________________________<br><font color="#888888">
| Mathieu Bouchard ---- tél: +1.514.383.3801 ---- Villeray, Montréal, QC<br>
</font></blockquote></div><br>