![]() |
Carna Version 3.3.3
|
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.
Tells current color.
Definition at line 88 of file RotatingColor.h.
|
inline |
Post-increments the color.
Definition at line 78 of file RotatingColor.h.
const ColorIdentifier Carna::base::RotatingColor::initialColor |
Holds the initial color.
Definition at line 68 of file RotatingColor.h.
Documentation generated by Doxygen