pixi latest version test
HTML
<script src="https://cdnjs.cloudflare.com/ajax/libs/pixi.js/5.1.3/pixi.min.js"></script>
<div id="root">
</div>
JavaScript
const width = window.innerWidth;
const height = window.innerHeight;
let app = new PIXI.Application({
width,
height,
resolution: window.devicePixelRatio || 1,
transparent: true,
});
const root = document.getElementById('root');
root.appendChild(app.view);
let stage = new PIXI.Container();
app.stage.addChild(stage);
this.controls = new PIXI.Graphics();
this.controls.lineStyle(1, 0xd3d3d3);
this.controls.beginFill(0xffffff);
this.controls.drawRoundedRect(50,
50, 28, 28, 5);
this.controls.endFill();
stage.addChild(this.controls);