evanw / glfx.js

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

Zoom in/ out #10

Closed amitaibu closed 12 years ago

amitaibu commented 12 years ago

Thanks for glfx, it's a really nice library!

I wonder if zoom in/ out is/ can be a filter -- or should I manipulate the directly to get the zoom feature?

evanw commented 12 years ago

You should be able to perform zoom yourself using the matrixWarp() filter, although depending on your use case it may be better to just resize the canvas and allow the browser to do scrolling itself.