Unravel Engine C# Reference
Loading...
Searching...
No Matches
Color Struct Reference
Inheritance diagram for Color:

Public Member Functions

 Color (float r, float g, float b, float a)
 
 Color (float r, float g, float b)
 
override string ToString ()
 
string ToString (string format)
 
string ToString (string format, IFormatProvider formatProvider)
 
override int GetHashCode ()
 
override bool Equals (object other)
 
bool Equals (Color other)
 

Static Public Member Functions

static Color operator+ (Color a, Color b)
 
static Color operator- (Color a, Color b)
 
static Color operator* (Color a, Color b)
 
static Color operator* (Color a, float b)
 
static Color operator* (float b, Color a)
 
static Color operator/ (Color a, float b)
 
static bool operator== (Color lhs, Color rhs)
 
static bool operator!= (Color lhs, Color rhs)
 
static Color Lerp (Color a, Color b, float t)
 
static Color LerpUnclamped (Color a, Color b, float t)
 
static implicit operator Vector4 (Color c)
 
static implicit operator Color (Vector4 v)
 
static void RGBToHSV (Color rgbColor, out float H, out float S, out float V)
 
static Color HSVToRGB (float H, float S, float V)
 
static Color HSVToRGB (float H, float S, float V, bool hdr)
 

Public Attributes

float r
 
float g
 
float b
 
float a
 

Properties

static Color red [get]
 
static Color green [get]
 
static Color blue [get]
 
static Color white [get]
 
static Color black [get]
 
static Color yellow [get]
 
static Color cyan [get]
 
static Color magenta [get]
 
static Color gray [get]
 
static Color grey [get]
 
static Color clear [get]
 
float grayscale [get]
 
float maxColorComponent [get]
 
float this[int index] [get, set]
 

Detailed Description

Definition at line 7 of file Color.cs.

Constructor & Destructor Documentation

◆ Color() [1/2]

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

Definition at line 236 of file Color.cs.

◆ Color() [2/2]

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

Definition at line 257 of file Color.cs.

Member Function Documentation

◆ Equals() [1/2]

bool Color.Equals ( Color other)

Definition at line 338 of file Color.cs.

◆ Equals() [2/2]

override bool Color.Equals ( object other)

Definition at line 328 of file Color.cs.

◆ GetHashCode()

override int Color.GetHashCode ( )

Definition at line 323 of file Color.cs.

◆ HSVToRGB() [1/2]

static Color Color.HSVToRGB ( float H,
float S,
float V )
static

Definition at line 510 of file Color.cs.

◆ HSVToRGB() [2/2]

static Color Color.HSVToRGB ( float H,
float S,
float V,
bool hdr )
static

Definition at line 535 of file Color.cs.

◆ Lerp()

static Color Color.Lerp ( Color a,
Color b,
float t )
static

Definition at line 396 of file Color.cs.

◆ LerpUnclamped()

static Color Color.LerpUnclamped ( Color a,
Color b,
float t )
static

Definition at line 412 of file Color.cs.

◆ operator Color()

static implicit Color.operator Color ( Vector4 v)
static

Definition at line 437 of file Color.cs.

◆ operator Vector4()

static implicit Color.operator Vector4 ( Color c)
static

Definition at line 432 of file Color.cs.

◆ operator!=()

static bool Color.operator!= ( Color lhs,
Color rhs )
static

Definition at line 378 of file Color.cs.

◆ operator*() [1/3]

static Color Color.operator* ( Color a,
Color b )
static

Definition at line 353 of file Color.cs.

◆ operator*() [2/3]

static Color Color.operator* ( Color a,
float b )
static

Definition at line 358 of file Color.cs.

◆ operator*() [3/3]

static Color Color.operator* ( float b,
Color a )
static

Definition at line 363 of file Color.cs.

◆ operator+()

static Color Color.operator+ ( Color a,
Color b )
static

Definition at line 343 of file Color.cs.

◆ operator-()

static Color Color.operator- ( Color a,
Color b )
static

Definition at line 348 of file Color.cs.

◆ operator/()

static Color Color.operator/ ( Color a,
float b )
static

Definition at line 368 of file Color.cs.

◆ operator==()

static bool Color.operator== ( Color lhs,
Color rhs )
static

Definition at line 373 of file Color.cs.

◆ RGBToHSV()

static void Color.RGBToHSV ( Color rgbColor,
out float H,
out float S,
out float V )
static

Definition at line 442 of file Color.cs.

◆ ToString() [1/3]

override string Color.ToString ( )

Definition at line 276 of file Color.cs.

◆ ToString() [2/3]

string Color.ToString ( string format)

Definition at line 292 of file Color.cs.

◆ ToString() [3/3]

string Color.ToString ( string format,
IFormatProvider formatProvider )

Definition at line 308 of file Color.cs.

Member Data Documentation

◆ a

float Color.a

Definition at line 27 of file Color.cs.

◆ b

float Color.b

Definition at line 22 of file Color.cs.

◆ g

float Color.g

Definition at line 17 of file Color.cs.

◆ r

float Color.r

Definition at line 12 of file Color.cs.

Property Documentation

◆ black

Color Color.black
staticget

Definition at line 80 of file Color.cs.

◆ blue

Color Color.blue
staticget

Definition at line 56 of file Color.cs.

◆ clear

Color Color.clear
staticget

Definition at line 152 of file Color.cs.

◆ cyan

Color Color.cyan
staticget

Definition at line 104 of file Color.cs.

◆ gray

Color Color.gray
staticget

Definition at line 128 of file Color.cs.

◆ grayscale

float Color.grayscale
get

Definition at line 164 of file Color.cs.

◆ green

Color Color.green
staticget

Definition at line 44 of file Color.cs.

◆ grey

Color Color.grey
staticget

Definition at line 140 of file Color.cs.

◆ magenta

Color Color.magenta
staticget

Definition at line 116 of file Color.cs.

◆ maxColorComponent

float Color.maxColorComponent
get

Definition at line 176 of file Color.cs.

◆ red

Color Color.red
staticget

Definition at line 32 of file Color.cs.

◆ this[int index]

float Color.this[int index]
getset

Definition at line 178 of file Color.cs.

◆ white

Color Color.white
staticget

Definition at line 68 of file Color.cs.

◆ yellow

Color Color.yellow
staticget

Definition at line 92 of file Color.cs.


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