Doloro GDK 22 .1.0 Beta
by Tauri Interactive
Doloro.BaseTypes.Color Struct Reference

Detailed Description

Serialisable version of the UnityEngine.Color structure.

Public Member Functions

 Color (float r, float g, float b)
 Instantiates color container. More...
 
 Color (float r, float g, float b, float a)
 Instantiates color container. More...
 
 Color (UnityEngine.Color color)
 Clones value from another instance. More...
 
override string ToString ()
 Converting to string. More...
 

Static Public Member Functions

static implicit operator UnityEngine.Color (Color d)
 Casts value to Unity-like Color. More...
 
static implicit operator Color (UnityEngine.Color d)
 Casts Unity-like value to Doloro-like color. More...
 

Public Attributes

float r
 Red channel value.
 
float g
 Green channel value.
 
float b
 Blue channel value.
 
float a
 Alpha channel value.
 

Properties

static Color yellow [get]
 Yellow. RGBA is (1, 0.92, 0.016, 1), but the color is nice to look at!
 
static Color clear [get]
 Completely transparent. RGBA is (0, 0, 0, 0).
 
static Color grey [get]
 English spelling for gray. RGBA is the same (0.5, 0.5, 0.5, 1).
 
static Color gray [get]
 Gray. RGBA is (0.5, 0.5, 0.5, 1).
 
static Color magenta [get]
 Magenta. RGBA is (1, 0, 1, 1).
 
static Color cyan [get]
 Cyan. RGBA is (0, 1, 1, 1).
 
static Color red [get]
 Solid red. RGBA is (1, 0, 0, 1).
 
static Color black [get]
 Solid black. RGBA is (0, 0, 0, 1).
 
static Color white [get]
 Solid white. RGBA is (1, 1, 1, 1).
 
static Color blue [get]
 Solid blue. RGBA is (0, 0, 1, 1).
 
static Color green [get]
 Solid green. RGBA is (0, 1, 0, 1).
 

Constructor & Destructor Documentation

◆ Color() [1/3]

Doloro.BaseTypes.Color.Color ( float  r,
float  g,
float  b 
)

Instantiates color container.

Parameters
rRed channel value.
gGreen channel value.
bBlue channel value.

◆ Color() [2/3]

Doloro.BaseTypes.Color.Color ( float  r,
float  g,
float  b,
float  a 
)

Instantiates color container.

Parameters
rRed channel value.
gGreen channel value.
bBlue channel value.
aAlpha channel value.

◆ Color() [3/3]

Doloro.BaseTypes.Color.Color ( UnityEngine.Color  color)

Clones value from another instance.

Parameters
color

Member Function Documentation

◆ operator Color()

static implicit Doloro.BaseTypes.Color.operator Color ( UnityEngine.Color  d)
static

Casts Unity-like value to Doloro-like color.

Parameters
dInput value.

◆ operator UnityEngine.Color()

static implicit Doloro.BaseTypes.Color.operator UnityEngine.Color ( Color  d)
static

Casts value to Unity-like Color.

Parameters
dInput value.

◆ ToString()

override string Doloro.BaseTypes.Color.ToString ( )

Converting to string.

Returns
String formated value.

The documentation for this struct was generated from the following file: