JSFiddle - React, Tailwind, and code Playground

HTML

<!DOCTYPE html>
<html>
    <head>
        <title>LOLS</title>
    </head>
    <body>
        <script src="https://github.com/AdmiralPotato/npos3d/raw/master/src/core.js"></script>
    </body>
</html>

JavaScript

var n = NPos3d;
var s = new n.Scene();


var Something = function(args){
    if(this === window){throw 'Please use the `new` keyword when calling a constructor.';}
    var t = this;
    n.blessWith3DBase(t,args);
    return t;
}
Something.prototype = {
    shape:NPos3d.Geom.cube,
    update:function(){
        var t = this;
        t.rot[0] += deg;
        t.rot[1] += deg;
        t.render();
    }
};

var myThing = new Something({pos:[0,0,0]});
s.add(myThing);