Euphoria
|
palette.cc
Go to the documentation of this file.
Definition: argparse.cc:45
const T & get_random_item_in_vector(Random *r, const std::vector< T > &v)
Definition: random.h:68
Definition: angle.h:14
Definition: palette.h:101
static DynamicPalette create_rainbow(int count, float saturation=0.5f, float lightness=0.5f)
based on the r documentation https://rdrr.io/r/grDevices/palettes.html
Definition: palette.cc:90
DynamicPalette(const std::string &n, const Rgbi &c0, const R &... c)
Definition: palette.h:108
static DynamicPalette create_empty(const std::string &name)
Create a empty palette with a name.
Definition: palette.cc:83
Definition: palette.h:19
const Rgbi & get_safe_index(unsigned int i) const
Get a color based on the index.
Definition: palette.cc:32
int get_index_closest(const Rgbi &c) const
Definition: palette.cc:46
const Rgbi & get_closest_color(const Rgbi &c) const
Definition: palette.cc:39