Closed phenomen closed 2 years ago
I think it's because grayscale()
doesn't return the filter, so the array has an unexpected value (probably undefined).
I haven't used that filter myself, but try something like this:
const colorFilter = new PIXI.filters.ColorMatrixFilter()
colorFilter.grayscale()
const filters = [colorFilter]
@mattjennings That works! Thank you.
What am I doing wrong? I have no issues with BlurFilter() but ColorMatrixFilter() does throw an error for some reason.