44 void getColor(
int intensity,
int color[3])
const;
49 void getColor(
double intensity,
int color[3])
const;
74 Dye(
const std::string &dye);
84 void update(
int color[3])
const;
90 const std::string &palettes);
Class for performing a linear interpolation between colors.
void getColor(int intensity, int color[3]) const
Gets a pixel color depending on its intensity.
std::vector< Color > mColors
Class for dispatching pixel-recoloring amongst several palettes.
void update(int color[3]) const
Modifies a pixel color.
static void instantiate(std::string &target, const std::string &palettes)
Fills the blank in a dye placeholder with some palette names.
DyePalette * mDyePalettes[7]
The order of the palettes, as well as their uppercase letter, is:
~Dye()
Destroys the associated palettes.