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>