summaryrefslogtreecommitdiffstats
path: root/libdimension/pigment_map.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2011-07-28 12:47:10 -0600
committerTavian Barnes <tavianator@gmail.com>2011-07-28 12:47:10 -0600
commit275c2542c4e414ffe01558cfca2445dcad6bbd29 (patch)
tree62ef619a9e9577386f7805f7799784a2c03dcb0c /libdimension/pigment_map.c
parent2c6692e1fb0687ddd2898220286c7a3c7e8b6850 (diff)
downloaddimension-275c2542c4e414ffe01558cfca2445dcad6bbd29.tar.xz
Remove color_maps.
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)