Procházet zdrojové kódy

Removed Color.setHSV.

Mr.doob před 12 roky
rodič
revize
818d7a0d4e
2 změnil soubory, kde provedl 0 přidání a 18 odebrání
  1. 0 11
      docs/api/math/Color.html
  2. 0 7
      src/math/Color.js

+ 0 - 11
docs/api/math/Color.html

@@ -89,17 +89,6 @@
 		Sets this color from RGB values.
 		</div>
 
-		<h3>.setHSV( [page:Float h], [page:Float s], [page:Float v] ) [page:this]</h3>
-		<div>
-		h — Hue channel value between 0 and 1.<br />
-		s — Saturation value channel between 0 and 1.<br />
-		v — Value channel value between 0 and 1.
-		</div>
-		<div>
-		Sets this color from HSV values.<br />
-		Based on MochiKit implementation by Bob Ippolito.
-		</div>
-
 		<h3>.getHex() [page:Integer]</h3>
 		<div>
 		Returns the hexadecimal value of this color.

+ 0 - 7
src/math/Color.js

@@ -52,13 +52,6 @@ THREE.extend( THREE.Color.prototype, {
 
 	},
 
-	setHSV: function ( h, s, v ) {
-
-		console.log( 'DEPRECATED: Color\'s .setHSV() will be removed. Use .setHSL( h, s, l ) instead.' );
-		return this.setHSL(h,s*v/((h=(2-s)*v)<1?h:2-h),h/2); // https://gist.github.com/xpansive/1337890
-
-	},
-
 	setHSL: function ( h, s, l ) {
 
 		// h,s,l ranges are in 0.0 - 1.0