IMP  2.0.1
The Integrative Modeling Platform
IMP::display::Color Class Reference

Represent an RGB color.

#include <IMP/display/Color.h>

+ Inheritance diagram for IMP::display::Color:

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.
 

Component access

typedef const double * ComponentIterator
 
double get_red () const
 
double get_green () const
 
double get_blue () const
 
ComponentIterator components_begin () const
 
ComponentIterator components_end () const
 

Detailed Description

Definition at line 24 of file Color.h.

Constructor & Destructor Documentation

IMP::display::Color::Color ( double  r,
double  g,
double  b 
)

Components must be between 0 and 1

template<class It >
IMP::display::Color::Color ( It  b,
It  e 
)

Components must be between 0 and 1

Definition at line 50 of file Color.h.

Friends And Related Function Documentation

Color get_interpolated_rgb ( const Color a,
const Color b,
double  f 
)
related

If f is 0, then a is returned, if f is 1, b is returned.

Definition at line 162 of file Color.h.


The documentation for this class was generated from the following file: