summaryrefslogtreecommitdiffstats
path: root/libdimension/dimension
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2011-05-20 22:16:51 -0600
committerTavian Barnes <tavianator@gmail.com>2011-05-20 22:16:51 -0600
commit07d784563af19c162945c60562819269e6fc4994 (patch)
treea37e984d281c1fccb5a4cdbe7b86defa16d04091 /libdimension/dimension
parent18b89c6edc29a009b1419e6d34bc3eef2dd911b9 (diff)
downloaddimension-07d784563af19c162945c60562819269e6fc4994.tar.xz
Calculate alpha correctly for canvas exports.
Diffstat (limited to 'libdimension/dimension')
-rw-r--r--libdimension/dimension/color.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libdimension/dimension/color.h b/libdimension/dimension/color.h
index be5dc3d..98d1530 100644
--- a/libdimension/dimension/color.h
+++ b/libdimension/dimension/color.h
@@ -91,5 +91,7 @@ dmnsn_color dmnsn_filter_light(dmnsn_color light, dmnsn_color 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);
+/** Convert the color into a close equivalent with only transmittance. */
+dmnsn_color dmnsn_remove_filter(dmnsn_color color);
/** Illuminate \p color with \p light. */
dmnsn_color dmnsn_color_illuminate(dmnsn_color light, dmnsn_color color);