CodePen

HTML

            
              
            
          
!

CSS

            
              
            
          
!
? ?
? ?
Must be a valid URL.
+ add another resource
via CSS Lint

JS

            
              var scene = new THREE.Scene();
var camera = new THREE.PerspectiveCamera( 100, window.innerWidth / window.innerHeight, 0.1, 1000 );

var renderer = new THREE.WebGLRenderer();
renderer.setSize( window.innerWidth, window.innerHeight );
document.body.appendChild( renderer.domElement );
var geometry = new THREE.CylinderGeometry( 5, 5, 20, 32 );
var material = new THREE.MeshBasicMaterial( { color: 0xfffff , wireframe: true} );
var cylinder = new THREE.Mesh( geometry, material );
scene.add( cylinder );

camera.position.z = 20;


function render() {
	requestAnimationFrame(render);
    cylinder.rotation.z += 0.01;
  cylinder.rotation.y += 0.1;
	renderer.render(scene, camera);
}
render();
            
          
!
Must be a valid URL.
+ add another resource
via JS Hint
Loading ..................