summaryrefslogtreecommitdiffstats
path: root/libdimension/dimension/pigments.h
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/dimension/pigments.h
parent2c6692e1fb0687ddd2898220286c7a3c7e8b6850 (diff)
downloaddimension-275c2542c4e414ffe01558cfca2445dcad6bbd29.tar.xz
Remove color_maps.
Diffstat (limited to 'libdimension/dimension/pigments.h')
-rw-r--r--libdimension/dimension/pigments.h28
1 files changed, 10 insertions, 18 deletions
diff --git a/libdimension/dimension/pigments.h b/libdimension/dimension/pigments.h
index 60dc658..56bba92 100644
--- a/libdimension/dimension/pigments.h
+++ b/libdimension/dimension/pigments.h
@@ -39,13 +39,7 @@ dmnsn_pigment *dmnsn_new_solid_pigment(dmnsn_color color);
dmnsn_pigment *dmnsn_new_canvas_pigment(dmnsn_canvas *canvas);
/**
- * Construct a color map.
- * @return An empty color map.
- */
-dmnsn_map *dmnsn_new_color_map(void);
-
-/**
- * pigment_map flags.
+ * Pigment map flags.
*/
typedef enum dmnsn_pigment_map_flags {
DMNSN_PIGMENT_MAP_REGULAR, /**< Calculate linear color gradients. */
@@ -53,23 +47,21 @@ typedef enum dmnsn_pigment_map_flags {
} dmnsn_pigment_map_flags;
/**
- * A color-mapped pigment.
- * @param[in,out] pattern The pattern of the pigment.
- * @param[in,out] map The color map to apply to the pattern.
- * @param[in] flags Gradient flags
- * @return A pigment mapping the pattern to color values.
- */
-dmnsn_pigment *dmnsn_new_color_map_pigment(dmnsn_pattern *pattern,
- dmnsn_map *map,
- dmnsn_pigment_map_flags flags);
-
-/**
* Construct a pigment map.
* @return An empty pigment map.
*/
dmnsn_map *dmnsn_new_pigment_map(void);
/**
+ * Add a raw color to a pigment map.
+ * Shorthand for creating a solid pigment and adding it manually.
+ * @param[in,out] map The pigment map to add to.
+ * @param[in] n The index of the entry.
+ * @param[in] color The value of the entry.
+ */
+void dmnsn_pigment_map_add_color(dmnsn_map *map, double n, dmnsn_color color);
+
+/**
* A pigment-mapped pigment.
* @param[in,out] pattern The pattern of the pigment.
* @param[in,out] map The pigment map to apply to the pattern.