Example: How to make a sprite stretch with PixiJS

This example creates a PixiJS application with a specified width and height, sets a background color, and appends it to the document body. It then creates a sprite from an image file and centers it on the screen. The sprite continuously animates by stretching and shrinking based on sine and cosine functions, resulting in a pulsating effect.