summaryrefslogtreecommitdiffstats
path: root/libdimension/dimension
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2011-11-28 21:15:44 -0500
committerTavian Barnes <tavianator@gmail.com>2011-11-28 21:23:39 -0500
commit3cff39f02c54eb0f06835e1e0b6a2f6f02d0b5cb (patch)
treebbc25d189e8b63ff5f4751498c4858f97acb155e /libdimension/dimension
parent458736a57bf8573de747e28f816b77248f998b85 (diff)
downloaddimension-3cff39f02c54eb0f06835e1e0b6a2f6f02d0b5cb.tar.xz
Be more consistent about using sRGB in the client.
Also, expose the sRGB C and C^-1 functions.
Diffstat (limited to 'libdimension/dimension')
-rw-r--r--libdimension/dimension/color.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/libdimension/dimension/color.h b/libdimension/dimension/color.h
index 8470957..295400b 100644
--- a/libdimension/dimension/color.h
+++ b/libdimension/dimension/color.h
@@ -85,10 +85,15 @@ dmnsn_color_saturate(dmnsn_color color)
/* Perceptual color manipulation */
-/** Convert from sRGB space. */
-dmnsn_color dmnsn_color_from_sRGB(dmnsn_color color);
+/** Apply sRGB gamma */
+double dmnsn_sRGB_gamma(double Clinear);
/** Convert to sRGB space. */
dmnsn_color dmnsn_color_to_sRGB(dmnsn_color color);
+/** Remove sRGB gamma */
+double dmnsn_sRGB_inverse_gamma(double CsRGB);
+/** Convert from sRGB space. */
+dmnsn_color dmnsn_color_from_sRGB(dmnsn_color color);
+
/** Greyscale color intensity. */
double dmnsn_color_intensity(dmnsn_color color);
/** Add two colors together. */