Update '12/torusKnot.js'

master
barkaiavital 5 years ago
parent a8e152d3af
commit 7f7996d98c

@ -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(canvas);
document.body.appendChild(renderer.domElement);
var geometry = new THREE.TorusKnotGeometry( 10, 3, 100, 16 );
var material = new THREE.MeshBasicMaterial( { color: 0x00ff00 } );

Loading…
Cancel
Save