KenC Posted November 19, 2020 Share Posted November 19, 2020 I'm trying to follow the first tutorial. I don't understand why I don't see anything unless I uncomment out the resize() (which is not in the tutorial), and even when I do, the background color is not as specified in the Application object. Any pointers would be appreciated. <!doctype html> <html> <head> <meta charset="utf-8"> <title>Hello World</title> </head> <body> <script src="pixi/pixi.min.js"></script> <script type="text/javascript"> //Create a Pixi Application let app = new PIXI.Application({ width: 256, height: 256, antialiasing: true, transparent: false, backgroundColor: 0x0000f0, resolution: 1 }); // If I comment below, then I see a nothing. Also, why is the canvas // background black instead of 0x0000f0? app.renderer.resize(256, 256); document.body.appendChild(app.view); </script> </body> </html> Quote Link to comment Share on other sites More sharing options...
KenC Posted November 19, 2020 Author Share Posted November 19, 2020 Never mind, works as expected now by using version 5.3.3. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.