<code>var color = new THREE.Color( 0xff0000 );</code>
<code>var color = new THREE.Color( 0xff0000 );</code>
<code>var color = new THREE.Color("rgb(255,0,0)");</code>
<code>var color = new THREE.Color("rgb(255,0,0)");</code>
<code>var color = new THREE.Color( 1, 0, 0 );</code>
<h2>Constructor</h2>
<h2>Constructor</h2>
...
@@ -25,7 +26,7 @@
...
@@ -25,7 +26,7 @@
<h3>[name]( value )</h3>
<h3>[name]( value )</h3>
<div>
<div>
value — optional argument that sets initial color. Can be a hexadecimal or a CSS-style string, for example, "rgb(250, 0,0)", "rgb(100%,0%,0%)", "#ff0000", "#f00", or "red"
value — optional argument that sets initial color. Can be a hexadecimal or a CSS-style string, for example, "rgb(250, 0,0)", "rgb(100%,0%,0%)", "#ff0000", "#f00", or "red", or three arguments that represent color channels.