Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const bunny = new PIXI.Sprite(PIXI.loader.resources.bunny.texture);
bunny.x = (i % 5) * 40;
bunny.y = Math.floor(i / 5) * 40;
bunniesContainer.addChild(bunny);
}
text.position.set(bunniesContainer.width / 2, 0);
bunniesContainer.hitArea = new PIXI.Rectangle(0, 0, bunniesContainer.width, bunniesContainer.height);
this.filteredBunnies.x = this.app.initialWidth - this.filteredBunnies.width - 10;
this.filteredBunnies.y = this.app.initialHeight - this.filteredBunnies.height;
// Filters
const filters = [
new AsciiFilter(),
new CRTFilter(),
new GlowFilter(),
new OldFilmFilter(),
new ShockwaveFilter(new PIXI.Point(bunniesContainer.width / 2, bunniesContainer.height / 2)),
new OutlineFilter(1, 0xFF0000),
];
}