#include <pixel.h>
Inheritance diagram for Plot::HSVPixel< Component, HComponent >:
Definition at line 159 of file pixel.h.
Public Methods | |
| std::ostream & | put (std::ostream &s) |
| Stream output. | |
Constructors and destructors | |
| HSVPixel () | |
| Default constructor; pixel remains transparent. | |
| HSVPixel (HComponent hue, Component saturation, Component value) | |
| Constructor taking HSV triple. | |
| HSVPixel (const HSVPixel &other) | |
| Copy constructor. | |
| template<class OComponent> | HSVPixel (const RGBPixel< OComponent > &other) |
| Constructor for an HSVPixel from an RGBPixel. | |
Access functions for the components of the pixel | |
| Bounded::Magnitude | hue () const |
| Returns the hue component on a scale [0.0,1.0]. | |
| Bounded::Magnitude | saturation () const |
| Returns the saturation component on a scale [0.0,1.0]. | |
| Bounded::Magnitude | value () const |
| Returns the value component on a scale [0.0,1.0]. | |
Static Public Attributes | |
| int | reversed_color_order = false |
| This parameter can be set to a nonzero value if you want hues to go in the opposite direction. | |
|
||||||||||||||
|
Constructor for an HSVPixel from an RGBPixel. Algorithm is from _Computer_Graphics_, 2nd Ed., Foley et al, 1990, except Hue modified to lie in [0,1] instead of [0,360]. S, and V are also specified in the range [0,1]. Definition at line 270 of file pixel.h. References Plot::HSVPixel< Component, HComponent >::reversed_color_order. |
1.3-rc2