Loxahatchee  v0.0.1-1346
Lox Convenience C++ Library
LoxColours.cpp File Reference
#include "LoxColours.hpp"
#include "LoxNumbers.hpp"
#include <algorithm>
Include dependency graph for LoxColours.cpp:

Functions

static void initialize (void)
 

Variables

static Lox::Colours::EType lastUsedGradient = Lox::Colours::kUnknown
 The most recently used gradient is remembered for when Lox::Colours::getNextGradient() is called. More...
 
static Lox::VStr vAllColours
 
static Lox::VStr vBlueToPink
 
static Lox::VStr vColourPairs
 
static Lox::VStr vDark
 
static Lox::VStr vGreenToPurple
 
static Lox::VStr vLight
 
static Lox::VStr vPurpleToOrange
 
static Lox::VStr vYellowToBlue
 
static Lox::VStr vYellowToBlueDark
 
static Lox::VStr vYellowToBlueLight
 
static Lox::VStr vYellowToGreen
 
static Lox::VStr vYellowToPurple
 

Function Documentation

static void initialize ( void  )
static

This method is automatically called internally to populate the various vectors of colours. Once allocated, the vectors are not freed until the static objects are destroyed, and thus will show up in Valgrind. This is a static allocation, not a memory leak.

See web sites such as http://www.perbang.dk/rgbgradient/

References vAllColours, vBlueToPink, vColourPairs, vDark, vGreenToPurple, vLight, vPurpleToOrange, vYellowToBlue, vYellowToBlueDark, vYellowToBlueLight, vYellowToGreen, and vYellowToPurple.

Referenced by Lox::Exception::Exception(), Lox::Colours::getRandomColour(), and Lox::Colours::getSet().

Here is the caller graph for this function:

Variable Documentation

Lox::Colours::EType lastUsedGradient = Lox::Colours::kUnknown
static

The most recently used gradient is remembered for when Lox::Colours::getNextGradient() is called.

Referenced by Lox::Colours::getNextGradient(), Lox::Colours::getRandomGradient(), and Lox::Colours::getSet().

Lox::VStr vBlueToPink
static

Referenced by Lox::Colours::getSet(), and initialize().

Lox::VStr vColourPairs
static

Referenced by Lox::Colours::getSet(), and initialize().

Lox::VStr vDark
static

Referenced by Lox::Colours::getSet(), and initialize().

Lox::VStr vGreenToPurple
static

Referenced by Lox::Colours::getSet(), and initialize().

Lox::VStr vLight
static

Referenced by Lox::Colours::getSet(), and initialize().

Lox::VStr vPurpleToOrange
static

Referenced by Lox::Colours::getSet(), and initialize().

Lox::VStr vYellowToBlue
static

Referenced by Lox::Colours::getSet(), and initialize().

Lox::VStr vYellowToBlueDark
static

Referenced by Lox::Colours::getSet(), and initialize().

Lox::VStr vYellowToBlueLight
static

Referenced by Lox::Colours::getSet(), and initialize().

Lox::VStr vYellowToGreen
static

Referenced by Lox::Colours::getSet(), and initialize().

Lox::VStr vYellowToPurple
static

Referenced by Lox::Colours::getSet(), and initialize().