Im trying to apply a filter to a sprite. I’m comming from PIXI, and they way i was achieving it was
this.someSprite.filters = [new OutlineFilter(9, 0xFF0000,1)]; // this is an example for OutlineFilter
I’m trying to achieve the same effect in Phaser 2. I followed the instructions in this link https://github.com/pixijs/pixi-filters/tree/master/filters/outline , imported the outline filter but Visual Studio code underlines this part
new OutlineFilter(9, 0xFF0000,1)
and the error is
Type ‘OutlineFilter’ is missing the following properties from type ‘AbstractFilter’: dirty, padding, uniforms, fragmentSrc, and 2 more
Probably im not doing it in the right way, can anyone help with this ?