JSFiddle - React, Tailwind, and code Playground

by Matt Karl

HTML

<script src="https://pixijs.download/v6.0.4/pixi.min.js"></script>

JavaScript

var app = new PIXI.Application({
    width: window.innerWidth,
    height: window.innerHeight,
    backgroundColor: 0x111111
});
document.body.appendChild(app.view);

const _graphics = new PIXI.Graphics()
	.lineStyle({
    alpha: 1,
    color: 0x00ff00,
    width: 5,
	})
	.drawRoundedRect(0, 0, 30, 12, 6);
_graphics.scale.set(10);
_graphics.position.set(50, 50);
app.stage.addChild(_graphics);