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< ColormColors

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

std::vector< Color > DyePalette::mColors [private]

Definition at line 51 of file dye.h.


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

Generated on Sun Apr 26 17:30:43 2009 for The Mana World by  doxygen 1.5.5