PisiJS shapes 4.8.6
by Bouh
HTML
<script src="https://cdnjs.cloudflare.com/ajax/libs/pixi.js/5.3.3/pixi.min.js"></script>
JavaScript
var renderer = new PIXI.WebGLRenderer(1024, 300);
document.body.appendChild(renderer.view);
var stage = new PIXI.Container();
// Initialize the pixi Graphics class
var graphics = new PIXI.Graphics();
graphics.clear();
graphics.lineStyle(5, 0x3498db,1);
graphics.beginFill(0xf1c40f); // Yellow
// Draw a polygon to look like a star
graphics.drawEllipse(150,150, 100, 100);
graphics.endFill();
// Add the graphics to the stage
stage.addChild(graphics);
renderer.render(stage);