ColorStrokeMaterial.js 342 B

12345678910
  1. THREE.ColorStrokeMaterial = function (hex, opacity, lineWidth) {
  2. this.lineWidth = lineWidth || 1;
  3. this.color = new THREE.Color( (opacity ? (opacity * 0xff) << 24 : 0xff000000) | hex );
  4. this.toString = function () {
  5. return 'THREE.ColorStrokeMaterial ( lineWidth: ' + this.lineWidth + ', color: ' + this.color + ' )';
  6. }
  7. }
粤ICP备19079148号