JSFiddle - React, Tailwind, and code Playground

by Admiral Potato

HTML

<script src="https://raw.github.com/AdmiralPotato/npos3d/master/src/core.js"></script>

JavaScript

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

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

var myBacteria = new Bacteria();

s.add(myBacteria);

console.log(myBacteria);