summaryrefslogtreecommitdiffstats
path: root/libdimension/dimension/color.h
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2011-04-12 14:09:46 -0400
committerTavian Barnes <tavianator@gmail.com>2011-04-12 14:09:46 -0400
commitb6d6b32a6f02965e1d088adaa6a0e051d620b878 (patch)
treec14af77cd111e37ac8cfb8b4cacf5e2229266ccf /libdimension/dimension/color.h
parent167fe4ff63713d7267eb1f11651e969b0dc108f8 (diff)
downloaddimension-b6d6b32a6f02965e1d088adaa6a0e051d620b878.tar.xz
Fix up translucency semantics and API.
Diffstat (limited to 'libdimension/dimension/color.h')
-rw-r--r--libdimension/dimension/color.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/libdimension/dimension/color.h b/libdimension/dimension/color.h
index 363eb56..c9d777b 100644
--- a/libdimension/dimension/color.h
+++ b/libdimension/dimension/color.h
@@ -127,8 +127,12 @@ dmnsn_color dmnsn_color_add(dmnsn_color color1, dmnsn_color color2);
dmnsn_color dmnsn_color_mul(double n, dmnsn_color color);
/** Return the color at \p n on a gradient from \p c1 at 0 to \p c2 at 1. */
dmnsn_color dmnsn_color_gradient(dmnsn_color c1, dmnsn_color c2, double n);
-/** Filter \p color through \p filter. */
-dmnsn_color dmnsn_color_filter(dmnsn_color color, dmnsn_color filter);
+/** Filter \p light through \p filter. */
+dmnsn_color dmnsn_filter_light(dmnsn_color light, dmnsn_color filter);
+/** Add the background contribution \p filtered to \p filter. */
+dmnsn_color dmnsn_apply_translucency(dmnsn_color filtered, dmnsn_color filter);
+/** Add the background contribution of \p color to \p filter. */
+dmnsn_color dmnsn_apply_filter(dmnsn_color color, dmnsn_color filter);
/** Illuminate \p color with \p light. */
dmnsn_color dmnsn_color_illuminate(dmnsn_color light, dmnsn_color color);