color_map.hpp
Tools to dynamically build (and cache) color maps.
Functions
-
std::string ColorHSL(double h, double s, double l)
Generate a string to describe a JS color out of HSL values.
-
std::string ColorRGB(int r, int g, int b)
Generate a string to describe a JS color out of RGB values.
-
std::string ColorRGB(int r, int g, int b, double a)
Generate a string to describe a JS color with an alpha channel.
-
std::string ColorHSV(double h, double s, double v)
Generate a string to describe a JS color out of HSV values.