aboutsummaryrefslogtreecommitdiffstats
path: root/doc/info/chap/colour-spaces.texinfo
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2016-12-16 15:46:04 +0100
committerMattias Andrée <maandree@kth.se>2016-12-16 15:46:04 +0100
commita696a6f41cdd0460d728b4cc3acbf690c2aa93f7 (patch)
tree0d2d4d590d845a8ae51763545577c227167b2afa /doc/info/chap/colour-spaces.texinfo
parentupdate todo (diff)
downloadlibcolour-a696a6f41cdd0460d728b4cc3acbf690c2aa93f7.tar.gz
libcolour-a696a6f41cdd0460d728b4cc3acbf690c2aa93f7.tar.bz2
libcolour-a696a6f41cdd0460d728b4cc3acbf690c2aa93f7.tar.xz
add tests, fixes errors, and improve percision
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'doc/info/chap/colour-spaces.texinfo')
-rw-r--r--doc/info/chap/colour-spaces.texinfo13
1 files changed, 0 insertions, 13 deletions
diff --git a/doc/info/chap/colour-spaces.texinfo b/doc/info/chap/colour-spaces.texinfo
index eb26ba0..a214feb 100644
--- a/doc/info/chap/colour-spaces.texinfo
+++ b/doc/info/chap/colour-spaces.texinfo
@@ -403,21 +403,8 @@ function is available for your use:
@table @code
@item double libcolour_srgb_encode(double x)
Applies the sRGB transfer function.
-It's full code is
-@example
-return x <= 0.0031306684425217108
- ? 12.92 * x
- : 1.055 * pow(x, 1 / 2.4) - 0.055;
-@end example
-
@item double libcolour_srgb_decode(double x)
Unapplies the sRGB transfer function.
-It's full code is
-@example
-return x <= 0.040448236277380506
- ? x / 12.92
- : pow((x + 0.055) / 1.055, 2.4);
-@end example
@end table