Pioneer
Loading...
Searching...
No Matches
Classes | Public Member Functions | Static Public Member Functions | List of all members
RandomColorGenerator::RandomColor Class Reference

#include <RandomColor.h>

Public Member Functions

 RandomColor ()
 

Static Public Member Functions

static Color GetColor (ColorScheme scheme, Luminosity luminosity)
 
static std::vector< ColorGetColors (Random &rand, ColorScheme scheme, Luminosity luminosity, int count)
 
static int PickHue (ColorScheme scheme)
 
static Color HsvToColor (int hue, int saturation, double value)
 Converts hue, saturation, and lightness to a color.
 

Constructor & Destructor Documentation

◆ RandomColor()

RandomColorGenerator::RandomColor::RandomColor ( )

Member Function Documentation

◆ GetColor()

Color RandomColorGenerator::RandomColor::GetColor ( ColorScheme  scheme,
Luminosity  luminosity 
)
static

Gets a new random color.

Parameters
schemeWhich color schemed to use when generating the color.
luminosityThe desired luminosity of the color.
Here is the call graph for this function:

◆ GetColors()

std::vector< Color > RandomColorGenerator::RandomColor::GetColors ( Random rand,
ColorScheme  scheme,
Luminosity  luminosity,
int  count 
)
static

Generates multiple random colors.

Parameters
schemeWhich color schemed to use when generating the color.
luminosityThe desired luminosity of the color.
countHow many colors to generate

Generates multiple random colors.

Parameters
schemeWhich color scheme to use when generating the color.
luminosityThe desired luminosity of the color.
countHow many colors to generate
Here is the call graph for this function:

◆ HsvToColor()

Color RandomColorGenerator::RandomColor::HsvToColor ( int  hue,
int  saturation,
double  value 
)
static

Converts hue, saturation, and lightness to a color.

Here is the call graph for this function:

◆ PickHue()

int RandomColorGenerator::RandomColor::PickHue ( ColorScheme  scheme)
static

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