Antiprism 0.23
|
A colour map with a good spread of colours. More...
#include <col_map.h>
Public Member Functions | |
virtual bool | init (const char *name, char *errmsg=0) |
Initialise from a string. | |
color_map * | clone () const |
Get a copy of the map. | |
virtual col_val | get_col (int idx) const |
Get the colour value for an index number. |
A colour map with a good spread of colours.
color_map* color_map_spread::clone | ( | ) | const [inline, virtual] |
Get a copy of the map.
delete
, 0 indicates that the clone failed. Reimplemented from color_map_range.
col_val color_map_spread::get_col | ( | int | idx | ) | const [virtual] |
Get the colour value for an index number.
idx | the index. |
Reimplemented from color_map_range.
bool color_map_spread::init | ( | const char * | name, |
char * | errmsg = 0 |
||
) | [virtual] |
Initialise from a string.
name | the map name. |
errmsg | an array at least MSG_SZ chars long to return any error message. |
Reimplemented from color_map_range.