Generate ranges of colors, and color palettes. More...
Go to the source code of this file.
Functions | |
color_range_map | recolor_range (const color_range &new_range, const std::vector< color_t > &old_rgb) |
Converts a source palette using the specified color_range object. More... | |
std::vector< color_t > | palette (const color_range &cr) |
Creates a reference color palette from a color range. More... | |
Generate ranges of colors, and color palettes.
Used e.g. to color HP, XP.
Definition in file color_range.cpp.
std::vector<color_t> palette | ( | const color_range & | cr | ) |
Creates a reference color palette from a color range.
Definition at line 111 of file color_range.cpp.
Referenced by game_config::add_color_info(), and push_color_palette().
color_range_map recolor_range | ( | const color_range & | new_rgb, |
const std::vector< color_t > & | old_rgb | ||
) |
Converts a source palette using the specified color_range object.
This holds the main interface for range-based team coloring. The output is used with the recolor_image() method to do the actual recoloring.
new_rgb | Specifies parameters for the conversion. |
old_rgb | Source palette. |
Definition at line 98 of file color_range.cpp.
References i.
Referenced by BOOST_AUTO_TEST_CASE().