CryEngine.Color

Wraps System.Drawing.Color object for easier usage. More...

Public Member Functions

Color (float r, float g, float b, float a=1)
Color WithAlpha (float a)
Creates new Color from current Color, with alpha applied to it. More...
System.Drawing.Color ToSystemColor ()
Creates a System.Drawing.Color from this Color. More...
override string ToString ()
Returns a string that represents the current Color. More...

Static Public Member Functions

static implicit operator ColorB (Color value)
static implicit operator Color (ColorB value)
static implicit operator ColorF (Color value)
Implicitly converts the Color to a ColorF. More...
static implicit operator Color (ColorF value)
Implicitly converts the ColorF to a Color. More...
static Color FromRGB (float r, float g, float b)
Creates a Color from given components. More...

Public Attributes

float R
float G
float B
float A

Properties

static Color Red [get]
static Color Yellow [get]
static Color Green [get]
static Color Cyan [get]
static Color SkyBlue [get]
static Color Blue [get]
static Color Pink [get]
static Color White [get]
static Color LiteGray [get]
static Color Gray [get]
static Color DarkGray [get]
static Color Black [get]
static Color Transparent [get]

Detailed Description

Wraps System.Drawing.Color object for easier usage.

Constructor & Destructor Documentation

◆ Color()

CryEngine.Color.Color ( float r,
float g,
float b,
float a = 1
)
inline

Member Function Documentation

◆ FromRGB()

static Color CryEngine.Color.FromRGB ( float r,
float g,
float b
)
inline
static

Creates a Color from given components.

Returns
The RG.
Parameters
rThe red component.
gThe green component.
bThe blue component.

◆ operator Color() [1/2]

static implicit CryEngine.Color.operator Color ( ColorB value)
inline
static

◆ operator Color() [2/2]

static implicit CryEngine.Color.operator Color ( ColorF value)
inline
static

Implicitly converts the ColorF to a Color.

Returns
The implicit.
Parameters
valueValue.

◆ operator ColorB()

static implicit CryEngine.Color.operator ColorB ( Color value)
inline
static

◆ operator ColorF()

static implicit CryEngine.Color.operator ColorF ( Color value)
inline
static

Implicitly converts the Color to a ColorF.

Returns
The implicit.
Parameters
valueValue.

◆ ToString()

override string CryEngine.Color.ToString ( )
inline

Returns a string that represents the current Color.

Returns
A string that represents the current Color.

◆ ToSystemColor()

System.Drawing.Color CryEngine.Color.ToSystemColor ( )
inline

Creates a System.Drawing.Color from this Color.

Returns
The created color.

◆ WithAlpha()

Color CryEngine.Color.WithAlpha ( float a)
inline

Creates new Color from current Color, with alpha applied to it.

Returns
The alpha.
Parameters
aThe alpha component.

Member Data Documentation

◆ A

float CryEngine.Color.A

◆ B

float CryEngine.Color.B

◆ G

float CryEngine.Color.G

◆ R

float CryEngine.Color.R

Property Documentation

◆ Black

Color CryEngine.Color.Black
static
get

◆ Blue

Color CryEngine.Color.Blue
static
get

◆ Cyan

Color CryEngine.Color.Cyan
static
get

◆ DarkGray

Color CryEngine.Color.DarkGray
static
get

◆ Gray

Color CryEngine.Color.Gray
static
get

◆ Green

Color CryEngine.Color.Green
static
get

◆ LiteGray

Color CryEngine.Color.LiteGray
static
get

◆ Pink

Color CryEngine.Color.Pink
static
get

◆ Red

Color CryEngine.Color.Red
static
get

◆ SkyBlue

Color CryEngine.Color.SkyBlue
static
get

◆ Transparent

Color CryEngine.Color.Transparent
static
get

◆ White

Color CryEngine.Color.White
static
get

◆ Yellow

Color CryEngine.Color.Yellow
static
get