Color

Color()

Initializes a new instance of the Color class. By default color is black.

public Color()

See Also


Color(float, float, float)

Initializes a new instance of the Color class. All color components must be in the range 0-1.

public Color(float red, float green, float blue)
ParameterTypeDescription
redSingleThe red component of the color.
greenSingleThe green component of the color.
blueSingleThe blue component of the color.

See Also


Color(float, float, float, float)

Initializes a new instance of the Color class. All color components must be in the range 0-1.

public Color(float red, float green, float blue, float alpha)
ParameterTypeDescription
redSingleThe red component of the color.
greenSingleThe green component of the color.
blueSingleThe blue component of the color.
alphaSingleThe alpha component of the color.

See Also


Color(byte, byte, byte)

Initializes a new instance of the Color class. All color components must be in the range 0-255.

public Color(byte red, byte green, byte blue)
ParameterTypeDescription
redByteThe red component of the color.
greenByteThe green component of the color.
blueByteThe blue component of the color.

See Also


Color(byte, byte, byte, byte)

Initializes a new instance of the Color class. All color components must be in the range 0-255.

public Color(byte red, byte green, byte blue, byte alpha)
ParameterTypeDescription
redByteA byte that represents the red component of the color.
greenByteA byte that represents the green component of the color.
blueByteA byte that represents the blue component of the color.
alphaByteA byte that represents the alpha component of the color.

See Also


Color(int, int, int)

Initializes a new instance of the Color class. All color components must be in the range 0-255.

public Color(int red, int green, int blue)
ParameterTypeDescription
redInt32The red component of the color.
greenInt32The green component of the color.
blueInt32The blue component of the color.

See Also


Color(int, int, int, int)

Initializes a new instance of the Color class. All color components must be in the range 0-255.

public Color(int red, int green, int blue, int alpha)
ParameterTypeDescription
redInt32The red component of the color.
greenInt32The green component of the color.
blueInt32The blue component of the color.
alphaInt32The alpha component of the color.

See Also