C# Class OpenBveApi.Colors.Color96

Represents a 96-bit color with red, green and blue channels at 32 bits each.
Mostrar archivo Open project: leezer3/OpenBVE Class Usage Examples

Public Properties

Property Type Description
B float
Black Color96
Blue Color96
Cyan Color96
G float
Green Color96
Magenta Color96
R float
Red Color96
White Color96
Yellow Color96

Public Methods

Method Description
Color96 ( float r, float g, float b ) : System

Creates a new color.

operator ( ) : bool

Checks whether two colors are equal.

Method Details

Color96() public method

Creates a new color.
public Color96 ( float r, float g, float b ) : System
r float The red component.
g float The green component.
b float The blue component.
return System

operator() public static method

Checks whether two colors are equal.
public static operator ( ) : bool
return bool

Property Details

B public_oe property

The blue component.
public float B
return float

Black public_oe static_oe property

Represents a black color.
public static Color96,OpenBveApi.Colors Black
return Color96

Blue public_oe static_oe property

Represents a blue color.
public static Color96,OpenBveApi.Colors Blue
return Color96

Cyan public_oe static_oe property

Represents a cyan color.
public static Color96,OpenBveApi.Colors Cyan
return Color96

G public_oe property

The green component.
public float G
return float

Green public_oe static_oe property

Represents a green color.
public static Color96,OpenBveApi.Colors Green
return Color96

Magenta public_oe static_oe property

Represents a magenta color.
public static Color96,OpenBveApi.Colors Magenta
return Color96

R public_oe property

The red component.
public float R
return float

Red public_oe static_oe property

Represents a red color.
public static Color96,OpenBveApi.Colors Red
return Color96

White public_oe static_oe property

Represents a white color.
public static Color96,OpenBveApi.Colors White
return Color96

Yellow public_oe static_oe property

Represents a yellow color.
public static Color96,OpenBveApi.Colors Yellow
return Color96