Arcade
|
A group of up to four colors used when drawing things such as Sprites. More...
Public Member Functions | |
Swatch (Color24 a, Color24 b, Color24 c) | |
Creates a three color swatch with a transparent fourth entry. More... | |
Swatch (Color24 a, Color24 b, Color24 c, Color24 d) | |
Creates a four color swatch. More... | |
Swatch (Color24 a, Color24 b, Color24 c, Color24 d, SwatchFlags flags) | |
Color24[] | GetColors () |
float[] | GetAlphas () |
int | Difference (Swatch other) |
Find the square of the euclidean difference between this swatch and another. More... | |
override int | GetHashCode () |
override bool | Equals (object obj) |
bool | Equals (Swatch swatch) |
Tests for equality between this swatch and another. More... | |
Public Attributes | |
readonly SwatchFlags | Flags |
readonly Color24 | A |
First color in the swatch. More... | |
readonly Color24 | B |
Second color in the swatch. More... | |
readonly Color24 | C |
Third color in the swatch. More... | |
readonly Color24 | D |
Fourth color in the swatch. More... | |
Static Public Attributes | |
static readonly Swatch | FullyTransparent |
Represents a completely non-visible swatch. More... | |
Properties | |
bool | TransparencyA [get] |
Is the first color in the swatch transparent? More... | |
bool | TransparencyB [get] |
Is the second color in the swatch transparent? More... | |
bool | TransparencyC [get] |
Is the third color in the swatch transparent? More... | |
bool | TransparencyD [get] |
Is the fourth color in the swatch transparent? More... | |
bool | IsFullyTransparent [get] |
Are all four colors in the swatch transparent? More... | |
Color24 | this[int index] [get] |
A group of up to four colors used when drawing things such as Sprites.
Creates a three color swatch with a transparent fourth entry.
a | The first color. |
b | The second color. |
c | The third color. |
Creates a four color swatch.
a | The first color. |
b | The second color. |
c | The third color. |
d | The fourth color. |
|
inline |
|
inline |
Find the square of the euclidean difference between this swatch and another.
other | The swatch to compare this swatch to. |
|
inline |
|
inline |
Tests for equality between this swatch and another.
swatch | The swatch to compare this swatch to. |
|
inline |
|
inline |
|
inline |
readonly Color24 GameAPI.BudgetBoy.Swatch.A |
First color in the swatch.
readonly Color24 GameAPI.BudgetBoy.Swatch.B |
Second color in the swatch.
readonly Color24 GameAPI.BudgetBoy.Swatch.C |
Third color in the swatch.
readonly Color24 GameAPI.BudgetBoy.Swatch.D |
Fourth color in the swatch.
readonly SwatchFlags GameAPI.BudgetBoy.Swatch.Flags |
|
static |
Represents a completely non-visible swatch.
|
get |
Are all four colors in the swatch transparent?
|
get |
|
get |
Is the first color in the swatch transparent?
|
get |
Is the second color in the swatch transparent?
|
get |
Is the third color in the swatch transparent?
|
get |
Is the fourth color in the swatch transparent?