|
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 implicit | operator Vector4 (Color c) |
|
static implicit | operator Color (Vector4 v) |
|
static Color | Lerp (Color a, Color b, float t) |
|
static Color | LerpUnclamped (Color a, Color b, float t) |
|
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) |
|
|
float | r |
|
float | g |
|
float | b |
|
float | a |
|
Definition at line 5 of file Color.cs.
◆ Color() [1/2]
FalcoEngine.Color.Color |
( |
float |
r, |
|
|
float |
g, |
|
|
float |
b, |
|
|
float |
a |
|
) |
| |
Constructs a new Color with given r,g,b,a components.
- Parameters
-
r | Red component. |
g | Green component. |
b | Blue component. |
a | Alpha component. |
Definition at line 169 of file Color.cs.
◆ Color() [2/2]
FalcoEngine.Color.Color |
( |
float |
r, |
|
|
float |
g, |
|
|
float |
b |
|
) |
| |
Constructs a new Color with given r,g,b components and sets a to 1.
- Parameters
-
r | Red component. |
g | Green component. |
b | Blue component. |
Definition at line 183 of file Color.cs.
◆ Equals() [1/2]
bool FalcoEngine.Color.Equals |
( |
Color |
other | ) |
|
◆ Equals() [2/2]
override bool FalcoEngine.Color.Equals |
( |
object |
other | ) |
|
◆ GetHashCode()
override int FalcoEngine.Color.GetHashCode |
( |
| ) |
|
◆ HSVToRGB() [1/2]
static Color FalcoEngine.Color.HSVToRGB |
( |
float |
H, |
|
|
float |
S, |
|
|
float |
V |
|
) |
| |
|
static |
Creates an RGB colour from HSV input.
- Parameters
-
H | Hue [0..1]. |
S | Saturation [0..1]. |
V | Brightness value [0..1]. |
hdr | Output HDR colours. If true, the returned colour will not be clamped to [0..1]. |
- Returns
- An opaque colour with HSV matching the input.
Definition at line 353 of file Color.cs.
◆ HSVToRGB() [2/2]
static Color FalcoEngine.Color.HSVToRGB |
( |
float |
H, |
|
|
float |
S, |
|
|
float |
V, |
|
|
bool |
hdr |
|
) |
| |
|
static |
Creates an RGB colour from HSV input.
- Parameters
-
H | Hue [0..1]. |
S | Saturation [0..1]. |
V | Brightness value [0..1]. |
hdr | Output HDR colours. If true, the returned colour will not be clamped to [0..1]. |
- Returns
- An opaque colour with HSV matching the input.
Definition at line 368 of file Color.cs.
◆ Lerp()
Linearly interpolates between colors a and b by t.
- Parameters
-
Definition at line 279 of file Color.cs.
◆ LerpUnclamped()
Linearly interpolates between colors a and b by t.
- Parameters
-
Definition at line 291 of file Color.cs.
◆ operator Color()
static implicit FalcoEngine.Color.operator Color |
( |
Vector4 |
v | ) |
|
|
static |
◆ operator Vector4()
static implicit FalcoEngine.Color.operator Vector4 |
( |
Color |
c | ) |
|
|
static |
◆ operator!=()
static bool FalcoEngine.Color.operator!= |
( |
Color |
lhs, |
|
|
Color |
rhs |
|
) |
| |
|
static |
◆ operator*() [1/3]
◆ operator*() [2/3]
static Color FalcoEngine.Color.operator* |
( |
Color |
a, |
|
|
float |
b |
|
) |
| |
|
static |
◆ operator*() [3/3]
static Color FalcoEngine.Color.operator* |
( |
float |
b, |
|
|
Color |
a |
|
) |
| |
|
static |
◆ operator+()
◆ operator-()
◆ operator/()
static Color FalcoEngine.Color.operator/ |
( |
Color |
a, |
|
|
float |
b |
|
) |
| |
|
static |
◆ operator==()
static bool FalcoEngine.Color.operator== |
( |
Color |
lhs, |
|
|
Color |
rhs |
|
) |
| |
|
static |
◆ RGBToHSV()
static void FalcoEngine.Color.RGBToHSV |
( |
Color |
rgbColor, |
|
|
out float |
H, |
|
|
out float |
S, |
|
|
out float |
V |
|
) |
| |
|
static |
◆ ToString() [1/2]
override string FalcoEngine.Color.ToString |
( |
| ) |
|
Returns a nicely formatted string of this color.
- Parameters
-
Definition at line 195 of file Color.cs.
◆ ToString() [2/2]
string FalcoEngine.Color.ToString |
( |
string |
format | ) |
|
Returns a nicely formatted string of this color.
- Parameters
-
Definition at line 204 of file Color.cs.
float FalcoEngine.Color.a |
float FalcoEngine.Color.b |
float FalcoEngine.Color.g |
float FalcoEngine.Color.r |
◆ aqua
Color FalcoEngine.Color.aqua |
|
staticget |
◆ black
Color FalcoEngine.Color.black |
|
staticget |
Solid black. RGBA is (0, 0, 0, 1).
Definition at line 35 of file Color.cs.
◆ blue
Color FalcoEngine.Color.blue |
|
staticget |
Solid blue. RGBA is (0, 0, 1, 1).
Definition at line 25 of file Color.cs.
◆ clear
Color FalcoEngine.Color.clear |
|
staticget |
Completely transparent. RGBA is (0, 0, 0, 0).
Definition at line 65 of file Color.cs.
◆ cream
Color FalcoEngine.Color.cream |
|
staticget |
◆ cyan
Color FalcoEngine.Color.cyan |
|
staticget |
Cyan. RGBA is (0, 1, 1, 1).
Definition at line 45 of file Color.cs.
◆ darkBlue
Color FalcoEngine.Color.darkBlue |
|
staticget |
◆ darkGreen
Color FalcoEngine.Color.darkGreen |
|
staticget |
Dark green
Definition at line 85 of file Color.cs.
◆ darkRed
Color FalcoEngine.Color.darkRed |
|
staticget |
◆ fuchsia
Color FalcoEngine.Color.fuchsia |
|
staticget |
◆ gray
Color FalcoEngine.Color.gray |
|
staticget |
Gray. RGBA is (0.5, 0.5, 0.5, 1).
Definition at line 55 of file Color.cs.
◆ grayscale
float FalcoEngine.Color.grayscale |
|
get |
The grayscale value of the color. (Read Only)
Definition at line 120 of file Color.cs.
◆ green
Color FalcoEngine.Color.green |
|
staticget |
Solid green. RGBA is (0, 1, 0, 1).
Definition at line 20 of file Color.cs.
◆ grey
Color FalcoEngine.Color.grey |
|
staticget |
English spelling for gray. RGBA is the same (0.5, 0.5, 0.5, 1).
Definition at line 60 of file Color.cs.
◆ magenta
Color FalcoEngine.Color.magenta |
|
staticget |
Magenta. RGBA is (1, 0, 1, 1).
Definition at line 50 of file Color.cs.
◆ maroon
Color FalcoEngine.Color.maroon |
|
staticget |
◆ olive
Color FalcoEngine.Color.olive |
|
staticget |
◆ red
Color FalcoEngine.Color.red |
|
staticget |
Solid red. RGBA is (1, 0, 0, 1).
Definition at line 15 of file Color.cs.
◆ silver
Color FalcoEngine.Color.silver |
|
staticget |
◆ teal
Color FalcoEngine.Color.teal |
|
staticget |
◆ this[int index]
float FalcoEngine.Color.this[int index] |
|
getset |
◆ white
Color FalcoEngine.Color.white |
|
staticget |
Solid white. RGBA is (1, 1, 1, 1).
Definition at line 30 of file Color.cs.
◆ yellow
Color FalcoEngine.Color.yellow |
|
staticget |
Yellow. RGBA is (1, 0.92, 0.016, 1), but the color is nice to look at!
Definition at line 40 of file Color.cs.
The documentation for this struct was generated from the following file: