IMP
2.0.1
The Integrative Modeling Platform
|
Represent an RGB color.
#include <IMP/display/Color.h>
Public Member Functions | |
Color (double r, double g, double b) | |
template<class It > | |
Color (It b, It e) | |
void | show (std::ostream &out, std::string delim) const |
void | show (std::ostream &out=std::cout) const |
Related Functions | |
(Note that these are not member functions.) | |
Color | get_interpolated_rgb (const Color &a, const Color &b, double f) |
Return a color interpolated between a and b in RGB space. More... | |
Colormaps | |
These functions map a number in the interval [0,1] to a color using some color map. | |
Color | get_jet_color (double f) |
Return the color for f from the jet color map. | |
Color | get_hot_color (double f) |
Return the color for f from the hot color map. | |
Color | get_rgb_color (double f) |
Return the color for f from the rgb color map. | |
Color | get_grey_color (double f) |
Return the a greyscale value for f. | |
Color | get_gnuplot_color (double f) |
Return colors using the gnuplot default color map. | |
IMP::display::Color::Color | ( | double | r, |
double | g, | ||
double | b | ||
) |
Components must be between 0 and 1
IMP::display::Color::Color | ( | It | b, |
It | e | ||
) |