NDEVR
API Documentation
RandomColorGenerator

Generates random colors based on configurable hue and luminosity settings. More...

Public Member Functions

 RandomColorGenerator ()
 Constructs a generator with default options.
 RandomColorGenerator (const RandomColorOptions &opt)
 Constructs a generator with the specified options.
RGBColor randomColorRGB () const
 Generates a single random RGB color based on the current options.
Buffer< RGBColorrandomColors (uint04 count) const
 Generates a buffer of random RGB colors.
void setOptions (RandomColorOptions &ops)
 Replaces the current color generation options.

Static Public Member Functions

static ColorMap LoadColorBounds ()
 Loads and returns the predefined color bounds dictionary for all hue styles.

Detailed Description

Generates random colors based on configurable hue and luminosity settings.


See also
ColorPalettes, RGBColor

Definition at line 52 of file RandomColorGenerator.h.

Constructor & Destructor Documentation

◆ RandomColorGenerator()

RandomColorGenerator::RandomColorGenerator ( const RandomColorOptions & opt)
inline

Constructs a generator with the specified options.

Parameters
[in]optThe color generation options to use.

Definition at line 75 of file RandomColorGenerator.h.

Member Function Documentation

◆ LoadColorBounds()

ColorMap RandomColorGenerator::LoadColorBounds ( )
static

Loads and returns the predefined color bounds dictionary for all hue styles.

Returns
A ColorMap containing the hue, saturation, and brightness ranges for each hue style.

◆ randomColorRGB()

RGBColor RandomColorGenerator::randomColorRGB ( ) const

Generates a single random RGB color based on the current options.

Returns
A randomly generated RGBColor.

◆ randomColors()

Buffer< RGBColor > RandomColorGenerator::randomColors ( uint04 count) const

Generates a buffer of random RGB colors.

Parameters
[in]countThe number of colors to generate.
Returns
A buffer containing the requested number of random colors.

◆ setOptions()

void RandomColorGenerator::setOptions ( RandomColorOptions & ops)
inline

Replaces the current color generation options.

Parameters
[in]opsThe new options to apply.

Definition at line 87 of file RandomColorGenerator.h.


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