JSFiddle - React, Tailwind, and code Playground
by Hunter Larco
HTML
<link rel="stylesheet" href="http://voxelcss.com/dist/voxel.css">
<script src="http://voxelcss.com/dist/voxel.js"></script>
JavaScript
var scene = new voxelcss.Scene();
scene.attach(document.body);
scene.rotate(-Math.PI/6, Math.PI/4);
var world = new voxelcss.World(scene);
var editor = new voxelcss.Editor(world);
editor.enableAutoSave();
editor.load();
if(world.getVoxels().length === 0)
editor.add(new voxelcss.Voxel(0, 0, 0, 100, {
mesh: voxelcss.Meshes.grass
}));