I’m liking the new filters, but I’m not too crazy about how to apply them.
I would prefer a simpler syntax like
[lua]object:applyFilter(options) [/lua]
where options is something like
[lua]
options={
filter=“saturation”,
saturation=.8
}
[/lua]
maybe with a :clearFilter() method to restore the original image.
Also, I was wondering, how can I apply more than a filter to an image?
I’ve tried applying a filter and then capturing a screenshot with display.capture, but it’s crashing corona.
Using the new method display.newSnapshot, I’ve been able to apply two filters, but only sometimes (it’s also crashing from time to time).
Generally, I’d really like to be able to apply more than a filter at the same time without using display.capture and similar. Maybe with a syntax like applyFilter(filter1, filter2, filter3, …)
where filter1 is a table containing the filter name as well as its params.
Ah, and I’d like to have more params for the filters (especially the blur, a radius would be great)
But anyway, good job! Great to see the first steps of Graphics 2.0!