Translation:
Application
Creates a Application.
Creates a Pixi application where all Pixi elements and composite functions need to be inside the application to work properly.
Getting Instance Externally
You can obtain the Application instance by binding a ref externally, but it is generally recommended to use useApplication internally.
API
Application Props
| Name | Type | Default | Description |
|---|---|---|---|
| width | number | 800 | The width of the renderer |
| height | number | 600 | The height of the renderer |
| background |
| The background color of the renderer | |
| backgroundColor |
| 0x000000 | The background color of the renderer |
| backgroundAlpha | number | 1 | The background alpha of the renderer |
| resolution | number | 1 | The resolution / device pixel ratio of the renderer |
more props in PIXI.Application
Application Slots
| Name | Description |
|---|---|
| default | The default slot is where you put all your Pixi elements. |