Свойство | Type | Description | |
---|---|---|---|
a | float | ||
b | float | ||
g | float | ||
r | float |
Méthode | Description | |
---|---|---|
Clone ( ) : |
Creates a new object that is a copy of the current instance.
|
|
ColorEx ( |
Copy constructor.
|
|
ColorEx ( float r, float g, float b ) : System |
Constructor taking RGB values
|
|
ColorEx ( float a, float r, float g, float b ) : System |
Constructor taking all component values.
|
|
CompareTo ( object obj ) : int |
Used to compare 2 ColorEx objects for equality.
|
|
Equals ( object obj ) : bool | ||
GetHashCode ( ) : int |
Override GetHashCode. Done mainly to quash warnings, no real need for it. |
|
Parse_0_255_String ( string parsableText ) : |
||
Saturate ( ) : void |
Clamps color value to the range [0, 1]
|
|
SaturateCopy ( ) : |
Clamps color value to the range [0, 1] in a copy
|
|
ToABGR ( ) : int |
Converts this color value to packed ABGR format.
|
|
ToARGB ( ) : int |
Converts this color value to packed ARBG format.
|
|
ToArrayRGBA ( float vals ) : void |
Populates the color components in a 4 elements array in RGBA order. Primarily used to help in OpenGL. |
|
ToRGBA ( ) : int | ||
ToString ( ) : string | ||
To_0_255_String ( ) : string | ||
operator ( ) : ColorEx | ||
operator ( ) : bool |
public ColorEx ( |
||
other | The ColorEx instance to copy | |
Résultat | System |
public ColorEx ( float r, float g, float b ) : System | ||
r | float | Red color component. |
g | float | Green color component. |
b | float | Blue color component. |
Résultat | System |
public ColorEx ( float a, float r, float g, float b ) : System | ||
a | float | Alpha value. |
r | float | Red color component. |
g | float | Green color component. |
b | float | Blue color component. |
Résultat | System |
public CompareTo ( object obj ) : int | ||
obj | object | An instance of a ColorEx object to compare to this instance. |
Résultat | int |
public static Parse_0_255_String ( string parsableText ) : |
||
parsableText | string | |
Résultat |