JSFiddle - React, Tailwind, and code Playground

HTML

<script src="//cdnjs.cloudflare.com/ajax/libs/pixi.js/3.0.1/pixi.js"></script>

JavaScript

var renderer = new PIXI.WebGLRenderer(800, 600);
document.body.appendChild(renderer.view);
var stage = new PIXI.Container();
var box = new PIXI.Graphics();
box.beginFill(0xffff00);
box.drawRect(0,0,200,200);
stage.addChild(box);
console.log(box.width);

box.scale.x = -1;
console.log(box.width);

 renderer.render(stage);

   // requestAnimationFrame(animate);

    function animate() {
        renderer.render(stage);
        requestAnimationFrame(animate);
    }