This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
var ClassName = Class.extend({ | |
init: function() { | |
// catch arguments here | |
// init class | |
} | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(function() { | |
// Handler for .ready() called. | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
function Application() { | |
this.camera = null; | |
this.scene = null; | |
this.renderer = null; | |
this.mesh = null; | |
this.init(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
param = typeof param !== 'undefined' ? param : default_value; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// creates a white (!!) line from 0,0,0 to 300,0,0 | |
// make sure background is other color than white ;) | |
var geometry = new THREE.Geometry(); | |
geometry.vertices.push(new THREE.Vector3(0, 0, 0)); | |
geometry.vertices.push(new THREE.Vector3(300, 0, 0)); | |
var line = new THREE.Line( | |
geometry, | |
new THREE.LineBasicMaterial( { color: 0xffffff, linewidth: 1 } ) | |
); |
NewerOlder