evanw / glfx.js

An image effects library for JavaScript using WebGL
https://evanw.github.io/glfx.js/
MIT License
3.26k stars 402 forks source link

stack more than just two filters #46

Open peeter2 opened 6 years ago

peeter2 commented 6 years ago

Hello,

Why does it not allow to stack more than just two certain filters? This allows only brightness and contrast for example. Or hue and saturation. But not brightness and hue. Or am I mistaken? Is there a way to apply unlimited filters to an image?

joebImagine commented 6 years ago

Hey!

I actually had the same issue. I know it isn't built in directly, but you can implement that stacking of the effects by using Javascript Classes. Let me know if you need more clarity on that!

peeter2 commented 6 years ago

oh, thanks for your reply

taslangraham commented 1 year ago

Hey!

I actually had the same issue. I know it isn't built in directly, but you can implement that stacking of the effects by using Javascript Classes. Let me know if you need more clarity on that!

Could you provide an example of how this can be done?