Carna  Version 3.3.2
Public Types | Public Member Functions | Public Attributes | List of all members
Carna::base::RotatingColor Class Reference

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.
 
RotatingColoroperator++ ()
 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.
 

Detailed Description

Supplies colors from a predefined, distinctive palette.

Author
Leonid Kostrykin
Date
28.7.11 - 31.3.15

Definition at line 40 of file RotatingColor.h.

Member Enumeration Documentation

◆ ColorIdentifier

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.


The documentation for this class was generated from the following file: