From 818d7a0d4e5d3254296f2f8c263550a6730045f6 Mon Sep 17 00:00:00 2001 From: "Mr.doob" Date: Thu, 14 Mar 2013 15:50:54 +0100 Subject: [PATCH] Removed Color.setHSV. --- docs/api/math/Color.html | 11 ----------- src/math/Color.js | 7 ------- 2 files changed, 18 deletions(-) diff --git a/docs/api/math/Color.html b/docs/api/math/Color.html index 3764794026..55152529aa 100644 --- a/docs/api/math/Color.html +++ b/docs/api/math/Color.html @@ -89,17 +89,6 @@ Sets this color from RGB values. -

.setHSV( [page:Float h], [page:Float s], [page:Float v] ) [page:this]

-
- h — Hue channel value between 0 and 1.
- s — Saturation value channel between 0 and 1.
- v — Value channel value between 0 and 1. -
-
- Sets this color from HSV values.
- Based on MochiKit implementation by Bob Ippolito. -
-

.getHex() [page:Integer]

Returns the hexadecimal value of this color. diff --git a/src/math/Color.js b/src/math/Color.js index 369d46ce81..5b453d0524 100644 --- a/src/math/Color.js +++ b/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 -- GitLab