C# Class OpenBveApi.Colors.Color24

Represents a 24-bit color with red, green and blue channels at 8 bits each.
Afficher le fichier Open project: leezer3/OpenBVE Class Usage Examples

Méthodes publiques

Свойство Type Description
B byte
Black Color24
Blue Color24
Cyan Color24
G byte
Green Color24
Magenta Color24
R byte
Red Color24
White Color24
Yellow Color24

Méthodes publiques

Méthode Description
Color24 ( byte r, byte g, byte b ) : System

Creates a new color.

CosineInterpolate ( Color24 Color1, Color24 Color2, double mu ) : Color24

Interpolates between two Color24 values using a simple Cosine algorithm

operator ( ) : bool

Checks whether two colors are equal.

Method Details

Color24() public méthode

Creates a new color.
public Color24 ( byte r, byte g, byte b ) : System
r byte The red component.
g byte The green component.
b byte The blue component.
Résultat System

CosineInterpolate() public static méthode

Interpolates between two Color24 values using a simple Cosine algorithm
public static CosineInterpolate ( Color24 Color1, Color24 Color2, double mu ) : Color24
Color1 Color24 The first color
Color2 Color24 The second color
mu double The position on the curve of the new color
Résultat Color24

operator() public static méthode

Checks whether two colors are equal.
public static operator ( ) : bool
Résultat bool

Property Details

B public_oe property

The blue component.
public byte B
Résultat byte

Black public_oe static_oe property

Represents a black color.
public static Color24,OpenBveApi.Colors Black
Résultat Color24

Blue public_oe static_oe property

Represents a blue color.
public static Color24,OpenBveApi.Colors Blue
Résultat Color24

Cyan public_oe static_oe property

Represents a cyan color.
public static Color24,OpenBveApi.Colors Cyan
Résultat Color24

G public_oe property

The green component.
public byte G
Résultat byte

Green public_oe static_oe property

Represents a green color.
public static Color24,OpenBveApi.Colors Green
Résultat Color24

Magenta public_oe static_oe property

Represents a magenta color.
public static Color24,OpenBveApi.Colors Magenta
Résultat Color24

R public_oe property

The red component.
public byte R
Résultat byte

Red public_oe static_oe property

Represents a red color.
public static Color24,OpenBveApi.Colors Red
Résultat Color24

White public_oe static_oe property

Represents a white color.
public static Color24,OpenBveApi.Colors White
Résultat Color24

Yellow public_oe static_oe property

Represents a yellow color.
public static Color24,OpenBveApi.Colors Yellow
Résultat Color24