C# Class CEngineSharp_Server.Utilities.Color

Show file Open project: JohnLamontagne/CEngineSharp Class Usage Examples

Public Properties

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

Public Methods

Method Description
Color ( Color color ) : System.Runtime.InteropServices

Construct the color from another

Color ( byte red, byte green, byte blue ) : System.Runtime.InteropServices

Construct the color from its red, green and blue components

Color ( byte red, byte green, byte blue, byte alpha ) : System.Runtime.InteropServices

Construct the color from its red, green, blue and alpha components

ToString ( ) : string

Provide a string describing the object

Method Details

Color() public method

Construct the color from another
public Color ( Color color ) : System.Runtime.InteropServices
color Color Color to copy
return System.Runtime.InteropServices

Color() public method

Construct the color from its red, green and blue components
public Color ( byte red, byte green, byte blue ) : System.Runtime.InteropServices
red byte Red component
green byte Green component
blue byte Blue component
return System.Runtime.InteropServices

Color() public method

Construct the color from its red, green, blue and alpha components
public Color ( byte red, byte green, byte blue, byte alpha ) : System.Runtime.InteropServices
red byte Red component
green byte Green component
blue byte Blue component
alpha byte Alpha (transparency) component
return System.Runtime.InteropServices

ToString() public method

Provide a string describing the object
public ToString ( ) : string
return string

Property Details

A public property

Alpha (transparent) component of the color
public byte A
return byte

B public property

Blue component of the color
public byte B
return byte

Black public static property

Predefined black color
public static Color,CEngineSharp_Server.Utilities Black
return Color

Blue public static property

Predefined blue color
public static Color,CEngineSharp_Server.Utilities Blue
return Color

Cyan public static property

Predefined cyan color
public static Color,CEngineSharp_Server.Utilities Cyan
return Color

G public property

Green component of the color
public byte G
return byte

Green public static property

Predefined green color
public static Color,CEngineSharp_Server.Utilities Green
return Color

Magenta public static property

Predefined magenta color
public static Color,CEngineSharp_Server.Utilities Magenta
return Color

R public property

Red component of the color
public byte R
return byte

Red public static property

Predefined red color
public static Color,CEngineSharp_Server.Utilities Red
return Color

Transparent public static property

Predefined (black) transparent color
public static Color,CEngineSharp_Server.Utilities Transparent
return Color

White public static property

Predefined white color
public static Color,CEngineSharp_Server.Utilities White
return Color

Yellow public static property

Predefined yellow color
public static Color,CEngineSharp_Server.Utilities Yellow
return Color