mirror of
https://github.com/wahyd4/three.js.git
synced 2026-08-13 23:16:07 +10:00
16 lines
315 B
JavaScript
16 lines
315 B
JavaScript
/**
|
|
* @author mr.doob / http://mrdoob.com/
|
|
*/
|
|
|
|
THREE.ParticleCircleMaterial = function ( hex, opacity ) {
|
|
|
|
this.color = new THREE.Color( ( opacity !== undefined ? opacity : 1 ) * 0xff << 24 ^ hex );
|
|
|
|
this.toString = function () {
|
|
|
|
return 'THREE.ParticleCircleMaterial ( color: ' + this.color + ' )';
|
|
|
|
};
|
|
|
|
};
|