color_map.hpp
Tools to dynamically build (and cache) color maps.
This file is part of Empirical, https://github.com/devosoft/Empirical Copyright (C) 2015-2017 Michigan State University MIT Software license; see doc/LICENSE.md
Defines
-
INCLUDE_EMP_WEB_COLOR_MAP_HPP_GUARD
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.