summaryrefslogtreecommitdiffstats
path: root/libdimension/pigment_map.c
diff options
context:
space:
mode:
Diffstat (limited to 'libdimension/pigment_map.c')
-rw-r--r--libdimension/pigment_map.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/libdimension/pigment_map.c b/libdimension/pigment_map.c
index cf49649..4ffb129 100644
--- a/libdimension/pigment_map.c
+++ b/libdimension/pigment_map.c
@@ -56,6 +56,13 @@ typedef struct dmnsn_pigment_map_payload {
dmnsn_pigment_map_flags flags;
} dmnsn_pigment_map_payload;
+void
+dmnsn_pigment_map_add_color(dmnsn_map *map, double n, dmnsn_color color)
+{
+ dmnsn_pigment *pigment = dmnsn_new_solid_pigment(color);
+ dmnsn_add_map_entry(map, n, &pigment);
+}
+
/** Free a pigment_map payload. */
static void
dmnsn_delete_pigment_map_payload(void *ptr)