|
Carna
Version 3.0.1
|
Supplies colors from a predefined, distinctive palette. More...
#include <RotatingColor.h>
Public Types | |
| enum | ColorIdentifier { blue = ( 1 << 0 ), green = ( 1 << 1 ), red = ( 1 << 2 ), orange = red | green, teal = green | blue, violet = red | blue, white = red | green | blue } |
| Identifies supported colors. More... | |
Public Member Functions | |
| RotatingColor (ColorIdentifier initialColor=blue) | |
| Instantiates. | |
| RotatingColor & | operator++ () |
| Pre-increments the color. | |
| RotatingColor | operator++ (int) |
| Post-increments the color. | |
| operator const Color & () const | |
| Tells current color. | |
| void | reset () |
| Resets s.t. the current color becomes the initial again. | |
Public Attributes | |
| const ColorIdentifier | initialColor |
| Holds the initial color. | |
Supplies colors from a predefined, distinctive palette.
Definition at line 40 of file RotatingColor.h.
Identifies supported colors.
| Enumerator | |
|---|---|
| blue |
Identifies blue. |
| green |
Identifies green. |
| red |
Identifies red. |
| orange |
Identifies orange. |
| teal |
Identifies teal. |
| violet |
Identifies violet. |
| white |
Identifies white. |
Definition at line 48 of file RotatingColor.h.
Documentation generated by Doxygen