JSFiddle - React, Tailwind, and code Playground

by Admiral Potato

HTML

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

JavaScript

var n = NPos3d;
var s = new n.Scene({
  lineWidth: 2
});

var ob = new n.Ob3D({
  scale: [10,10,10]
});

ob.update = function(){
  this.rot[1] += deg;
  this.color = 'hsl(' + ( this.rot[1] / deg ) + ', 100%, 50%)';
  this.pos[0] = s.mpos.x;
  this.pos[1] = s.mpos.y;
  this.render();
};

var myText = new n.VText({
  string: 'The Game',
  scale: [.1,.1,.1]

});

s.add(ob);
ob.add(myText);