C# Class OpenBveApi.Colors.Color128

Represents a 128-bit color with red, green, blue and alpha channels at 32 bits each.
Exibir arquivo Open project: leezer3/OpenBVE Class Usage Examples

Public Properties

Property Type Description
A float
B float
Black Color128
Blue Color128
Cyan Color128
G float
Green Color128
Magenta Color128
R float
Red Color128
Transparent Color128
White Color128
Yellow Color128

Public Methods

Method Description
Color128 ( Color24 color ) : System

Creates a new color.

The alpha component is set to full opacity.

Color128 ( Color24 color, float a ) : System

Creates a new color.

Color128 ( float r, float g, float b ) : System

Creates a new color.

The alpha component is set to full opacity.

Color128 ( float r, float g, float b, float a ) : System

Creates a new color.

operator ( ) : bool

Checks whether two colors are equal.

Method Details

Color128() public method

Creates a new color.
The alpha component is set to full opacity.
public Color128 ( Color24 color ) : System
color Color24 The solid color.
return System

Color128() public method

Creates a new color.
public Color128 ( Color24 color, float a ) : System
color Color24 The solid color.
a float The alpha component.
return System

Color128() public method

Creates a new color.
The alpha component is set to full opacity.
public Color128 ( float r, float g, float b ) : System
r float The red component.
g float The green component.
b float The blue component.
return System

Color128() public method

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

operator() public static method

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

Property Details

A public_oe property

The alpha component.
public float A
return float

B public_oe property

The blue component.
public float B
return float

Black public_oe static_oe property

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

Blue public_oe static_oe property

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

Cyan public_oe static_oe property

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

G public_oe property

The green component.
public float G
return float

Green public_oe static_oe property

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

Magenta public_oe static_oe property

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

R public_oe property

The red component.
public float R
return float

Red public_oe static_oe property

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

Transparent public_oe static_oe property

Represents a transparent black color.
public static Color128,OpenBveApi.Colors Transparent
return Color128

White public_oe static_oe property

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

Yellow public_oe static_oe property

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