提交 818d7a0d 编写于 作者: M Mr.doob

Removed Color.setHSV.

上级 1775ff10
......@@ -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.
......
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册