Class AutoPalette

Class Documentation

class AutoPalette

Automatically iterates the colors of a Palette on next()

Public Functions

inline explicit AutoPalette(const Palette &_palette)

Construct a new AutoPalette, with the colors from palette

Note

A copy of the palette’s colors are taken

Parameters:

_palettePalette of colors to iterate

inline const Color &next()

Returns the next color If palette.size() is exceed, returns to the first color