From a696a6f41cdd0460d728b4cc3acbf690c2aa93f7 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Fri, 16 Dec 2016 15:46:04 +0100 Subject: add tests, fixes errors, and improve percision MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- doc/info/chap/colour-spaces.texinfo | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'doc/info/chap/colour-spaces.texinfo') 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 -- cgit v1.2.3-70-g09d2