origami.js
origami.js copied to clipboard
[Image] Add filter options support
Ref: https://www.html5rocks.com/en/tutorials/canvas/imagefilters/ Add a option to create Image filters, like:
origami('.canvas').image('images/origamijs.png', 10, 10, {filter: 'grayscale'})
Hi,
I could to this. Would it be possible to apply more filters and not just one? Some filters accepts parameter(s), how we should pass those filters, like string: {filter: 'filter1|filter2,param1,param2'} or something like {filter: [ {name: 'filter1'}, {name: 'filter2', params:[param1, param2]} ]}
Regards, Ognjen