C# Class THREE.Color

ファイルを表示 Open project: guidovanhilst/SharpThreejs Class Usage Examples

Public Properties

Property Type Description
b double
g double
r double

Public Methods

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

Method Details

Color() public method

var color = new THREE.Color();
public Color ( ) : System
return System

Color() public method

var color = new THREE.Color( 1, 0, 0 );
public Color ( double r, double g, double b ) : System
r double
g double
b double
return System

Color() public method

var color = new THREE.Color( 0xff0000 );
public Color ( int hex ) : System
hex int
return System

Color() public method

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%)");
public Color ( string s ) : System
s string
return System

add() public method

public add ( Color c ) : Color
c Color
return Color

addColors() public method

public addColors ( Color c1, Color c2 ) : Color
c1 Color
c2 Color
return Color

addScalar() public method

public addScalar ( double s ) : Color
s double
return Color

copy() public method

public copy ( Color org ) : Color
org Color
return Color

multiply() public method

public multiply ( Color s ) : Color
s Color
return Color

multiplyScalar() public method

public multiplyScalar ( Color s ) : Color
s Color
return Color

setHSL() public method

public setHSL ( double h, double s, double l ) : Color
h double
s double
l double
return Color

setHex() public method

public setHex ( double hex ) : Color
hex double
return Color

setHex() public method

public setHex ( int hex ) : Color
hex int
return Color

setRGB() public method

public setRGB ( double r, double g, double b ) : Color
r double
g double
b double
return Color

setStyle() public method

public setStyle ( string style ) : Color
style string
return Color

Property Details

b public_oe property

public double b
return double

g public_oe property

public double g
return double

r public_oe property

public double r
return double