Urho.Color Structure

Represents a Color with transparency in Urho as four 32-bit floating point values.

See Also: Color

Syntax

public struct Color

Remarks

Individual channels should have values from zero to one.

Requirements

Namespace: Urho
Assembly: Urho (in Urho.dll)
Assembly Versions: 1.0.0.0

The members of Urho.Color are listed below.

See Also: ValueType

Public Constructors

Initializes the color from a color source and copies all elements from it.
Initializes the color by copying the red, green and blue components from the source and using the specified value for the alpha component.
Initializes a Color instance from the given red, green, blue and transparency values.

Public Fields

ASingle. The transparency (alpha) value.
BSingle. Blue component
static
BlackColor. Opaque black color (RGB values are set to 0, 0, 0).
static
BlueColor. Opaque blue color (RGB values are set to 0, 0, 1).
static
CyanColor. Opaque cyan color (RGB values are set to 0, 1, 1).
GSingle. Green component
static
GrayColor. Opaque grey color (RGB values are set to 0.5, 0.5, 0.5).
static
GreenColor. Opaque green color (RGB values are set to 0, 1, 0).
static
MagentaColor. Opaque magenta color (RGB values are set to 1, 0, 1).
RSingle. Red component
static
RedColor. Opaque red color (RGB values are set to 1, 0, 0).
static
TransparentColor. Fully transparent color, has red, green, blue and alpha values set to zero.
static
WhiteColor. Opaque white color (RGB values are set to 1, 1, 1).
static
YellowColor. Opaque yellow color (RGB values are set to 1, 1, 0).

Public Methods

Public Operators