Forum

PIXI.Application: s...
 
Notifications
Clear all

PIXI.Application: show content inside element

1 Posty
1 Users
0 Reactions
1,190 Widok
0
Topic starter

or div

1 Answer
0
Topic starter
  


import * as PIXI from 'pixi.js'

var display_div = document.getElementById('display');
const app = new PIXI.Application({
    width: 800,
    height:600,
    backgroundColor: 0x1099bb,
    resolution: window.devicePixelRatio || 1,
    view: display_div
});

const container = new PIXI.Container();
app.stage.addChild(container);

Odpowiedź

Author Name

Author Email

Your question *

 
Preview 0 Revisions Saved
Share: