提交 05ade8fe 编写于 作者: M Mr.doob

Color: Added setScalar.

上级 9ce5de81
...@@ -40,6 +40,14 @@ THREE.Color.prototype = { ...@@ -40,6 +40,14 @@ THREE.Color.prototype = {
}, },
setScalar: function ( scalar ) {
this.r = scalar;
this.g = scalar;
this.b = scalar;
},
setHex: function ( hex ) { setHex: function ( hex ) {
hex = Math.floor( hex ); hex = Math.floor( hex );
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册