IMP logo
IMP Reference Guide  2.20.1
The Integrative Modeling Platform
IMP::display::Color Class Reference

Represent an RGB color. More...

#include <IMP/display/Color.h>

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

Detailed Description

Represent an RGB color.

Definition at line 25 of file Color.h.

Public Member Functions

 Color (const Color &)=default
 
 Color (double r, double g, double b)
 
template<class It >
 Color (It b, It e)
 
Coloroperator= (const Color &)=default
 
void show (std::ostream &out, std::string delim) const
 
void show (std::ostream &out=std::cout) const
 

Component access

typedef std::array< double, 3 >
::const_iterator 
ComponentIterator
 
double get_red () const
 
double get_green () const
 
double get_blue () const
 
ComponentIterator components_begin () const
 
ComponentIterator components_end () const
 
const std::array< double, 3 > & get_rgb () const
 

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 62 of file Color.h.


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