Update '12/torusKnot.js'

master
barkaiavital 5 years ago
parent e390a641dd
commit 1f2af8343e

@ -3,7 +3,7 @@ var camera = new THREE.PerspectiveCamera( 75, window.innerWidth/window.innerHeig
var canvas = document.getElementById('torusKnot');
var renderer = new THREE.WebGLRenderer();
renderer.setSize( window.innerWidth/2, window.innerHeight/2 );
document.body.appendChild( renderer.domElement );
document.body.appendChild(canvas);
var geometry = new THREE.TorusKnotGeometry( 10, 3, 100, 16 );
var material = new THREE.MeshBasicMaterial( { color: 0x00ff00 } );

Loading…
Cancel
Save