Loxahatchee  v0.0.1-1346
Lox Convenience C++ Library
LoxColours.hpp File Reference

Several simple methods to handle collections of similar colours. More...

#include <string>
#include "LoxTypes.hpp"
Include dependency graph for LoxColours.hpp:
This graph shows which files directly or indirectly include this file:

Namespaces

 Lox
 Common methods and functionality easily shared between projects.
 
 Lox::Colours
 Several simple methods to handle collections of similar colours.
 

Enumerations

enum  Lox::Colours::EType {
  Lox::Colours::kInvalid,
  Lox::Colours::kUnknown,
  Lox::Colours::kAll,
  Lox::Colours::kPairs = 10,
  Lox::Colours::kNextGradient,
  Lox::Colours::kGradientMin = 100,
  Lox::Colours::kGradientDark = kGradientMin,
  Lox::Colours::kGradientLight,
  Lox::Colours::kGradientGreenToPurple,
  Lox::Colours::kGradientYellowToPurple,
  Lox::Colours::kGradientBlueToPink,
  Lox::Colours::kGradientYellowToGreen,
  Lox::Colours::kGradientPurpleToOrange,
  Lox::Colours::kGradientYellowToBlue,
  Lox::Colours::kGradientYellowToBlueLight,
  Lox::Colours::kGradientYellowToBlueDark,
  Lox::Colours::kGradientMax
}
 

Functions

std::string Lox::Colours::getNextColour (Lox::VStr &v)
 Get the next available colour from the specified set. More...
 
Lox::VStr Lox::Colours::getNextGradient (const bool reverse=false, const size_t skip=0)
 Get the next gradient set. More...
 
std::string Lox::Colours::getRandomColour (void)
 Get a random colour from all the known colours. More...
 
std::string Lox::Colours::getRandomColour (Lox::VStr &v)
 Get a random colour from the specified set. More...
 
Lox::VStr Lox::Colours::getRandomGradient (const size_t skip=0)
 Get a random gradient set. More...
 
Lox::VStr Lox::Colours::getSet (const EType type, const bool reverse=false, const size_t skip=0)
 Get a pre-defined colour set. More...
 

Detailed Description

Several simple methods to handle collections of similar colours.