
Public Member Functions | |
| ColorPalette (params Color[] colors) | |
| Creates a color palette from the given colors. | |
| ColorPalette (ColorPaletteConstant constant, byte numBitsPerPixel=8) | |
| Creates a color palette from a color palette constant. | |
| new (int r, int g, int b) RGB | |
| The next color of the palette as a tuple with the red, green and blue values. | |
| override string | ToString () |
| Returns a string that represents the Color object. | |
Data Fields | |
| ushort | r |
| The color as a tuple of red, green and blue values. | |
| ushort ushort | g |
Properties | |
| ulong | ColorCode [get] |
| The color code. | |
| ushort ushort ushort b | RGB [get] |
| ushort | Red [get] |
| The red value. | |
| ushort | Green [get] |
| The green value. | |
| ushort | Blue [get] |
| The blue value. | |
| static IEqualityComparer< Color > | Comparer = new ColorEqualityComparer() [get] |
| A default equality comparer for comparing Color data values. | |
Class holding a color palette (a set of colors).
This class cycles through a predefined list of colors.
Definition at line 11 of file ColorPalette.cs.
|
inline |
Creates a color palette from the given colors.
| colors | An array of Color objects. |
| IcvNotPossibleException | No colors are provided. |
Definition at line 26 of file ColorPalette.cs.
|
inline |
Creates a color palette from a color palette constant.
The colors in the palette are:
| constant | The color palette constant. |
| numBitsPerPixel | Number of bits per pixel. Defaults to 8. |
| IcvNotSupportedException | An invalid palette constant is provided. |
Definition at line 72 of file ColorPalette.cs.
|
inline |
The next color of the palette as a tuple with the red, green and blue values.
Definition at line 102 of file ColorPalette.cs.
|
inlineinherited |
Returns a string that represents the Color object.
|
inherited |
The color as a tuple of red, green and blue values.
|
getinherited |
|
getinherited |
A default equality comparer for comparing Color data values.
|
getinherited |
|
getinherited |