three.js dev template - module
CSS
body {
background-color: #000;
margin: 0px;
overflow: hidden;
}
JavaScript
// Simple three.js example
import * as THREE from "https://threejs.org/build/three.module.js";
import { OrbitControls } from "https://threejs.org/examples/jsm/controls/OrbitControls.js";
var mesh, renderer, scene, camera, controls;
init();
function init() {
const blue = new THREE.Color(0, 0, 255);
console.log("Blue object: ", blue);
console.log("Blue as hex string: ", blue.getHexString());
}