diff options
Diffstat (limited to 'libdimension/dimension/pigments.h')
-rw-r--r-- | libdimension/dimension/pigments.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/libdimension/dimension/pigments.h b/libdimension/dimension/pigments.h index f985362..31c0598 100644 --- a/libdimension/dimension/pigments.h +++ b/libdimension/dimension/pigments.h @@ -30,4 +30,17 @@ dmnsn_pigment *dmnsn_new_solid_pigment(dmnsn_color color); /* An image map */ dmnsn_pigment *dmnsn_new_canvas_pigment(dmnsn_canvas *canvas); +/* Color maps */ +typedef dmnsn_array dmnsn_color_map; + +dmnsn_color_map *dmnsn_new_color_map(); +void dmnsn_delete_color_map(dmnsn_color_map *map); + +void dmnsn_add_color_map_entry(dmnsn_color_map *map, double n, dmnsn_color c); +dmnsn_color dmnsn_color_map_value(const dmnsn_color_map *map, double n); + +/* Color-mapped pigments */ +dmnsn_pigment *dmnsn_new_color_map_pigment(dmnsn_pattern *pattern, + dmnsn_color_map *map); + #endif /* DIMENSION_PIGMENTS_H */ |