DyePalette Class Reference
#include <dye.h>
List of all members.
Detailed Description
Class for performing a linear interpolation between colors.
Definition at line 31 of file dye.h.
|
Public Member Functions |
| DyePalette (const std::string &pallete) |
| Creates a palette based on the given string.
|
void | getColor (int intensity, int color[3]) const |
| Gets a pixel color depending on its intensity.
|
Private Attributes |
std::vector< Color > | mColors |
Classes |
struct | Color |
Constructor & Destructor Documentation
DyePalette::DyePalette |
( |
const std::string & |
pallete |
) |
|
Creates a palette based on the given string.
The string is either a file name or a sequence of hexadecimal RGB values separated by ',' and starting with '#'.
Definition at line 28 of file dye.cpp.
Member Function Documentation
void DyePalette::getColor |
( |
int |
intensity, |
|
|
int |
color[3] | |
|
) |
| | const |
Gets a pixel color depending on its intensity.
Definition at line 78 of file dye.cpp.
Member Data Documentation
Definition at line 51 of file dye.h.
The documentation for this class was generated from the following files: