2#include <NDEVR/RGBColor.h>
3#include <NDEVR/Buffer.h>
4#include <NDEVR/Bounds.h>
5#include <NDEVR/Dictionary.h>
61 static ColorMap s_color_dictionary;
66 return getColorInfo(hue.
toTypeAngle<
sint04>())[ColorRangeType::e_saturation_range][0];
69 static Bounds<1, sint04> getHueRange(
int colorInput);
71 static Bounds<1, sint04> getHueRange_s(HUENAMES colorInput);
73 sint04 randomWithin(
const Bounds<1, sint04>& range)
const;
75 Angle<sint02> pickHue()
const;
77 Dictionary<ColorRangeType, Buffer<Bounds<1, sint04>>> getColorInfo(Angle<sint04> hue)
const;
79 uint01 pickSaturation(
const Angle<sint02>& hue)
const;
81 uint01 getMinimumBrightness(
const Angle<sint02>&
H, uint01 S)
const;
83 uint01 pickBrightness(
const Angle<sint02>&
H, uint01 S)
const;
Stores an angle in an optimized format.
Definition StringStream.h:352
constexpr Angle< t_new_type > toTypeAngle() const
Definition Angle.h:326
A specification of upper and lower bounds in N-dimensions.
Definition Bounds.hpp:57
The equivelent of std::vector but with a bit more control. The basic array unit of the library.
Definition Buffer.hpp:64
Definition Dictionary.h:48
Represents a color in the RGB space with optional alpha transparency.
Definition RGBColor.h:53
Definition RandomColorGenerator.h:34
RandomColorGenerator(const RandomColorOptions &opt)
Definition RandomColorGenerator.h:52
RandomColorGenerator()
Definition RandomColorGenerator.h:49
#define H(x, y, z)
Definition md5.cpp:17
int32_t sint04
-Defines an alias representing a 4 byte, signed integer. -Can represent exact integer values -2147483...
Definition BaseValues.hpp:76
HUENAMES
Definition RandomColorGenerator.h:15
@ PINK
Definition RandomColorGenerator.h:24
@ PURPLE
Definition RandomColorGenerator.h:23
@ BLUE
Definition RandomColorGenerator.h:22
@ GREEN
Definition RandomColorGenerator.h:21
@ MONOCHROME
Definition RandomColorGenerator.h:17
@ ORANGE
Definition RandomColorGenerator.h:19
@ YELLOW
Definition RandomColorGenerator.h:20
@ UNSET
Definition RandomColorGenerator.h:16
@ RED
Definition RandomColorGenerator.h:18
uint32_t uint04
-Defines an alias representing a 4 byte, unsigned integer -Can represent exact integer values 0 throu...
Definition BaseValues.hpp:120
LUMINOSITY
Definition RandomColorGenerator.h:9
@ DARK
Definition RandomColorGenerator.h:13
@ BRIGHT
Definition RandomColorGenerator.h:11
@ RANDOM
Definition RandomColorGenerator.h:10
@ LIGHT
Definition RandomColorGenerator.h:12
Definition RandomColorGenerator.h:26
size_t seed
Definition RandomColorGenerator.h:30
int hue
Definition RandomColorGenerator.h:28
HUENAMES hue_name
Definition RandomColorGenerator.h:29
LUMINOSITY luminosity
Definition RandomColorGenerator.h:31