JSFiddle - React, Tailwind, and code Playground
by georgie
HTML
<script src="//cdnjs.cloudflare.com/ajax/libs/pixi.js/2.2.5/pixi.js"></script>
JavaScript
if ( !window.requestAnimationFrame ) {
window.requestAnimationFrame = ( function() {
return window.webkitRequestAnimationFrame ||
window.mozRequestAnimationFrame ||
window.oRequestAnimationFrame ||
window.msRequestAnimationFrame ||
function( /* function FrameRequestCallback */ callback, /* DOMElement Element */ element ) {
window.setTimeout( callback, 1000 / 60 );
};
} )();
}
var renderer = PIXI.autoDetectRenderer(500, 500)
var stage = new PIXI.Stage(0x333333);
function render (){
renderer.reder(stage);
}
window.requestAnimationFrame(render);