Application is the convenience wrapper that owns a renderer, a root stage Container, a canvas, and the Ticker/Resize plugins. In v8 the constructor takes no arguments; all configuration is passed to the async app.init() call which instantiates the renderer via autoDetectRenderer . Quick Start import { Application } from "pixi.js" ; const app = new Application ( ) ; await app . init ( { resizeTo : window , background : "#1099bb" , antialias : true , preference : "webgl" , autoDensity : true , resolution : window . devicePixelRatio , } ) ; document . body . appendChild ( app . canvas ) ;
pixijs-application
安装
npx skills add https://github.com/pixijs/pixijs-skills --skill pixijs-application