Pixi.js: How can I initialize PIXI if I already have a canvas element in DOM

Created on 26 Mar 2018  ·  4Comments  ·  Source: pixijs/pixi.js

I want to use the canvas that already exist to initialize PIXI, what should I do?

Most helpful comment

All 4 comments

You can pass canvas in application or renderer constructor

var renderer = new PIXI.WebGLRenderer(800, 600, { view: myCanvas });

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

gigamesh picture gigamesh  ·  3Comments

sntiagomoreno picture sntiagomoreno  ·  3Comments

zcr1 picture zcr1  ·  3Comments

samueller picture samueller  ·  3Comments

neciszhang picture neciszhang  ·  3Comments