|
@@ -46,10 +46,10 @@ var color = new THREE.Color( 1, 0, 0 );
|
|
|
|
|
|
<h3>[name]( [page:Color_Hex_or_String r], [page:Float g], [page:Float b] )</h3>
|
|
|
<div>
|
|
|
- [page:Color_Hex_or_String r] - (optional) the red component of the color if arguments g and b are defined.
|
|
|
- If they are not defined, it can be a [link:https://en.wikipedia.org/wiki/Web_colors#Hex_triplet hexadecimal triplet] (recommended) or a CSS-style string or another Color instance.<br />
|
|
|
- [page:Float g] - (optional) The green component of the color if it is defined.<br />
|
|
|
- [page:Float b] - (optional) The blue component of the color if it is defined.<br /><br />
|
|
|
+ [page:Color_Hex_or_String r] - (optional) If arguments [page:Float g] and [page:Float b] are defined, the red component of the color.
|
|
|
+ If they are not defined, it can be a [link:https://en.wikipedia.org/wiki/Web_colors#Hex_triplet hexadecimal triplet] (recommended), a CSS-style string, or another Color instance.<br />
|
|
|
+ [page:Float g] - (optional) If it is defined, the green component of the color.<br />
|
|
|
+ [page:Float b] - (optional) If it is defined, the blue component of the color.<br /><br />
|
|
|
|
|
|
Note that standard method of specifying color in three.js is with a [link:https://en.wikipedia.org/wiki/Web_colors#Hex_triplet hexadecimal triplet], and that method is used
|
|
|
throughout the rest of the documentation.<br /><br />
|