Skip to content
On this page

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

NameTypeDefaultDescription
widthnumber800The width of the renderer
heightnumber600The height of the renderer
background

string|number|array|object

The background color of the renderer
backgroundColor

string|number|array|object

0x000000The background color of the renderer
backgroundAlphanumber1The background alpha of the renderer
resolutionnumber1The resolution / device pixel ratio of the renderer

more props in PIXI.Application

Application Slots

NameDescription
defaultThe default slot is where you put all your Pixi elements.