Skip to content
This repository has been archived by the owner on Jun 28, 2021. It is now read-only.

Commit

Permalink
fix: Fix demo pixi renderer
Browse files Browse the repository at this point in the history
  • Loading branch information
tleunen committed Feb 28, 2020
1 parent d1e108c commit 7ca3aaf
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,10 @@ <h2>Have Fun</h2>
<div id="pixi-container">
<script>
PIXI.settings.RESOLUTION = 2;
let renderer = PIXI.autoDetectRenderer(600, 3425);
let renderer = PIXI.autoDetectRenderer({
width: 600,
height: 3425
});
renderer.backgroundColor = 0x333333;
document.getElementById("pixi-container").appendChild(renderer.view);
let stage = new PIXI.Container();
Expand Down

0 comments on commit 7ca3aaf

Please sign in to comment.