/usr/share/javascript/three/examples/js/nodes/inputs/ColorNode.js is in libjs-three 80+dfsg2-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | /**
* @author sunag / http://www.sunag.com.br/
*/
THREE.ColorNode = function( color ) {
THREE.InputNode.call( this, 'c', { share: false } );
this.value = new THREE.Color( color || 0 );
};
THREE.ColorNode.prototype = Object.create( THREE.InputNode.prototype );
THREE.ColorNode.prototype.constructor = THREE.ColorNode;
THREE.NodeMaterial.addShortcuts( THREE.ColorNode.prototype, 'value', [ 'r', 'g', 'b' ] );
|