![]() |
LibCarna Version 3.4.0
|
Supplies colors from a predefined, distinctive palette. More...
#include <RotatingColor.hpp>
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 43 of file RotatingColor.hpp.
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 51 of file RotatingColor.hpp.
Tells current color.
Definition at line 91 of file RotatingColor.hpp.
|
inline |
Post-increments the color.
Definition at line 81 of file RotatingColor.hpp.
const ColorIdentifier LibCarna::base::RotatingColor::initialColor |
Holds the initial color.
Definition at line 71 of file RotatingColor.hpp.
Written by Leonid Kostrykin © 2021–2025. Based on Carna (© 2010-2016).
Documentation generated by Doxygen