Skip to content

Inherits
Object

Class Color

Represents a Role color.

Constructors


Color(System.Int32,System.Int32,System.Int32)

Creates a color from its red, green and blue components respectively.
Declaration

public Color(int r, int g, int b);

Parameters

Type Name Description
Int32 r Red component.
Int32 g Green component.
Int32 b Blue component.

Color(System.Int32)

Creates a new color with the specified value.
Declaration

public Color(int value);

Parameters

Type Name Description
Int32 value The raw integer value.

Properties


Value

Gets or sets the color's raw integer value.
Declaration

public int Value {get; set; }

Property Value

Type Description
Int32 The color's integer value.

R

Gets the red component of the color.
Declaration

public byte R {get; }

Property Value

Type Description
Byte The red component of the color.

G

Gets the greeb component of the color.
Declaration

public byte G {get; }

Property Value

Type Description
Byte The greeb component of the color.

B

Gets the blue component of the color.
Declaration

public byte B {get; }

Property Value

Type Description
Byte The blue component of the color.

Methods


Red()

Creates a instance of the class with the color red.
Declaration

public static Color Red()

Returns

Type Description
Color Color with the value of 0xf40404

Teal()

Creates a instance of the class with the color teal.
Declaration

public static Color Teal()

Returns

Type Description
Color Color with the value of 0x1abc9c