Example: How to make a sprite rotate with PixiJS
In this example the code initialises a PixiJS application with the dimensions of the window, sets a background color, and appends the application's view to the document body. It creates a sprite from an image file, centers its anchor point, positions it at the center of the screen, and adds it to the stage. Finally, it sets up animation for the sprite's rotation using PixiJS's ticker.