Property | Type | Description | |
---|---|---|---|
b | double | ||
g | double | ||
r | double |
Method | Description | |
---|---|---|
Color ( ) : System |
var color = new THREE.Color();
|
|
Color ( double r, double g, double b ) : System |
var color = new THREE.Color( 1, 0, 0 );
|
|
Color ( int hex ) : System |
var color = new THREE.Color( 0xff0000 );
|
|
Color ( string s ) : System |
var color = new THREE.Color("rgb(255, 0, 0)"); var color = new THREE.Color("rgb(100%, 0%, 0%)"); var color = new THREE.Color("hsl(0, 100%, 50%)");
|
|
add ( Color c ) : Color | ||
addColors ( Color c1, Color c2 ) : Color | ||
addScalar ( double s ) : Color | ||
copy ( Color org ) : Color | ||
multiply ( Color s ) : Color | ||
multiplyScalar ( Color s ) : Color | ||
setHSL ( double h, double s, double l ) : Color | ||
setHex ( double hex ) : Color | ||
setHex ( int hex ) : Color | ||
setRGB ( double r, double g, double b ) : Color | ||
setStyle ( string style ) : Color |
public Color ( double r, double g, double b ) : System | ||
r | double | |
g | double | |
b | double | |
return | System |
public addColors ( Color c1, Color c2 ) : Color | ||
c1 | Color | |
c2 | Color | |
return | Color |
public setHSL ( double h, double s, double l ) : Color | ||
h | double | |
s | double | |
l | double | |
return | Color |
public setRGB ( double r, double g, double b ) : Color | ||
r | double | |
g | double | |
b | double | |
return | Color |