Functions | |
void | Modify_Color_Map (int offset, const char *colors) |
void | Modify_Color_Map_By_Value (int offset, const char *color_space, int count, const HC_RGB *values) |
void Modify_Color_Map | ( | int | offset, |
const char * | colors | ||
) |
Changes the array of colors which are used when displaying Images, or "by index", color attributes.
offset | - Offset from the beginning of the color map at which to begin changing things. The very first entry in the color map is at offset zero. |
colors | - A (long!) string which contains English descriptions of the desired colors, separated by commas within the string. |
Modify_Color_Map() alters one, some, or all of the entries in a virtual color map attribute previously created by a call to Set_Color_Map() . The arguments are the same as those for Set_Color_Map() , except that you also specify an offset at which to start redefining colors. The count specifies how many of the entries are to be changed.
The Color Map is not lengthened or shortened by a call to Modify_Color_Map() ; to do that you would need to completely replace the map by making a new call to Set_Color_Map() .
void Modify_Color_Map_By_Value | ( | int | offset, |
const char * | color_space, | ||
int | count, | ||
const HC_RGB * | values | ||
) |
Similar to Modify_Color_Map() but operates with a color values rather than names or map indices.
offset | - Offset from the beginning of the color map at which to begin changing things. The very first entry in the color map is at offset zero. |
color_space | - Special constant—either "HLS", "HSV", "HIC", or "RGB". Note that the constant is a quoted string. Uppercase versus lower case is not significant. |
count | - The number of colors contained in the values array. |
values | - An array of triples (the same format as the array in Insert_Polyline() ) specifying the locations in the selected color space. |
No additional details. See Modify_Color_Map()