You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello here is the code that reproduces the error from what I understand there is an issue with version 7 of Pixi and the filters plugin. So my question is:
Can this be fixed or I need to use version 6 of Pixi to be able to use the filter in my projects?
constapp=newPIXI.Application({height: window.innerHeight,width: window.innerWidth,});document.body.appendChild(app.view);// create a sprite with an imageconsttexture=awaitPIXI.Assets.load("./assets/images/sunset.jpg");// create a new Sprite from the awaited loaded Textureconstsprite=PIXI.Sprite.from(texture);// center the sprite's anchor pointsprite.anchor.set(0.5);// move the sprite to the center of the screensprite.x=app.screen.width/2;sprite.y=app.screen.height/2;app.stage.addChild(sprite);// create a new ShockwaveFilterconstshockwaveFilter=newPIXI.filters.ShockwaveFilter({amplitude: 20,// the amplitude of the shockwave effectwavelength: 100,// the wavelength of the shockwave effectbrightness: 1,// the brightness of the shockwave effectspeed: 500,// the speed of the shockwave effect});// apply the shockwave filter to the spritesprite.filters=[shockwaveFilter];// animate the shockwave filter by updating the center propertyapp.ticker.add(()=>{// update the center of the shockwave filtershockwaveFilter.center=[sprite.x+sprite.width/2,sprite.y+sprite.height/2,];});
Thank you in advance for your time
The text was updated successfully, but these errors were encountered:
Hello here is the code that reproduces the error from what I understand there is an issue with version 7 of Pixi and the filters plugin. So my question is:
Can this be fixed or I need to use version 6 of Pixi to be able to use the filter in my projects?
Thank you in advance for your time
The text was updated successfully, but these errors were encountered: