summaryrefslogtreecommitdiffstats
path: root/libdimension/dimension/pigments.h
diff options
context:
space:
mode:
Diffstat (limited to 'libdimension/dimension/pigments.h')
-rw-r--r--libdimension/dimension/pigments.h34
1 files changed, 4 insertions, 30 deletions
diff --git a/libdimension/dimension/pigments.h b/libdimension/dimension/pigments.h
index 68a9c66..687080f 100644
--- a/libdimension/dimension/pigments.h
+++ b/libdimension/dimension/pigments.h
@@ -41,37 +41,11 @@ dmnsn_pigment *dmnsn_new_solid_pigment(dmnsn_color color);
*/
dmnsn_pigment *dmnsn_new_canvas_pigment(dmnsn_canvas *canvas);
-/** Color map. */
-typedef dmnsn_array dmnsn_color_map;
-
-/**
- * Create an empty color map.
- * @return A color map with no entries.
- */
-dmnsn_color_map *dmnsn_new_color_map(void);
-
-/**
- * Delete a color map.
- * @param[in,out] map The color map to delete.
- */
-void dmnsn_delete_color_map(dmnsn_color_map *map);
-
-/**
- * Add an entry (a scalar-color pair) to a color map.
- * @param[in,out] map The color map to add to.
- * @param[in] n The index of the entry.
- * @param[in] c The value of the entry.
- */
-void dmnsn_add_color_map_entry(dmnsn_color_map *map, double n, dmnsn_color c);
-
/**
- * Evaluate a color map.
- * @param[in] map The map to evaluate.
- * @param[in] n The index to evaluate.
- * @return The value of the gradient between the the two indicies closest to
- * \p n.
+ * Construct a color map.
+ * @return An empty color map.
*/
-dmnsn_color dmnsn_color_map_value(const dmnsn_color_map *map, double n);
+dmnsn_map *dmnsn_new_color_map();
/**
* A color-mapped pigment.
@@ -80,6 +54,6 @@ dmnsn_color dmnsn_color_map_value(const dmnsn_color_map *map, double n);
* @return A pigment mapping the pattern to color values.
*/
dmnsn_pigment *dmnsn_new_color_map_pigment(dmnsn_pattern *pattern,
- dmnsn_color_map *map);
+ dmnsn_map *map);
#endif /* DIMENSION_PIGMENTS_H */