Setting filters

The way filters are set is a bit confusing by setting the effect property to a string:

image.fill.effect = “filter.name”

Once this is set, image.fill.effect is not a string, but a user data object!

Then to set the filter parameter(s):

image.fill.effect.paramName = paramValue

This could be even more confusing or impossible if multiple filters (highly desired feature) are applied.

Something like this would be much simpler:

displayObj:setFilter(filterName, filterParams)

Also, is there a way to disable a filter effect or reset the image? I tried setting image.fill.effect to nil and empty string without success.

Done testing for all the filters and found some that are not working properly:

filter.contrast : Only see a white rect on the top-right.

filter.saturation : Same as above.

filter.linearGradient : even though the alpha channel is set to less than 100% or even 0%, there is no transparency in the gradient.

~

filter.monotone : Why aren’t the parameters set as vec4 like the other filters but need to specify r,g,b,a?

Thanks,

Dave

Done testing for all the filters and found some that are not working properly:

filter.contrast : Only see a white rect on the top-right.

filter.saturation : Same as above.

filter.linearGradient : even though the alpha channel is set to less than 100% or even 0%, there is no transparency in the gradient.

~

filter.monotone : Why aren’t the parameters set as vec4 like the other filters but need to specify r,g,b,a?

Thanks,

Dave