meltingice / CamanJS

Javascript HTML5 (Ca)nvas (Man)ipulation
http://camanjs.com
BSD 3-Clause "New" or "Revised" License
3.55k stars 404 forks source link

Making adjustments happen faster - using a ui slider... #77

Closed bostondevin closed 11 years ago

bostondevin commented 11 years ago

If I were to hook up a jquery ui slider to adjust brightness or contrast (or any of the properties), how can I get it so when you move the slider it changes the image immediately instead of the delay? I'm using the javascript library - is there a configurable setting?

Thanks!

meltingice commented 11 years ago

If you're using the code directly from the camanjs.com website, change the debounce to a throttle and it will make the renders a bit more responsive. The downside is that, if you don't throttle enough, things can get a bit messy.