origami.js icon indicating copy to clipboard operation
origami.js copied to clipboard

[Image] Add filter options support

Open raphamorim opened this issue 8 years ago • 1 comments

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'})

raphamorim avatar Oct 30 '16 21:10 raphamorim

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

ognjen-petrovic avatar Oct 02 '17 08:10 ognjen-petrovic