OmegaEngine API
1.0.3
|
Stores ARGB-colors as byte values but also surfaces them as float values. More...
Public Member Functions | |
XColor (float red, float green, float blue, float alpha) | |
XColor (byte a, byte r, byte g, byte b) | |
override string | ToString () |
Color4 | ToColorValue () |
override bool | Equals (object obj) |
override int | GetHashCode () |
Static Public Member Functions | |
static implicit | operator XColor (Color color) |
static | operator Color (XColor color) |
static XColor | FromColorValue (Color4 color) |
static bool | operator== (XColor color1, XColor color2) |
static bool | operator != (XColor color1, XColor color2) |
static bool | operator== (XColor color1, Color color2) |
static bool | operator != (XColor color1, Color color2) |
static bool | operator== (Color color1, XColor color2) |
static bool | operator != (Color color1, XColor color2) |
Properties | |
byte | A [get, set] |
byte | R [get, set] |
byte | G [get, set] |
byte | B [get, set] |
float | Red [get, set] |
float | Green [get, set] |
float | Blue [get, set] |
float | Alpha [get, set] |
Stores ARGB-colors as byte values but also surfaces them as float values.
This class can be used to serialize ARGB-color values (unlike Color all fields are writable). It provides easy methods for casting to and from Color (useful in combination with a PropertyGrid). It also provides easy methods for casting to and from Color4 (useful for rendering with SlimDX).