/usr/share/doc/libghc-colour-doc/html/Data-Colour-CIE.html is in libghc-colour-doc 2.3.3-8.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>Data.Colour.CIE</title><link href="ocean.css" rel="stylesheet" type="text/css" title="Ocean" /><script src="haddock-util.js" type="text/javascript"></script><script type="text/javascript">//<![CDATA[
window.onload = function () {pageLoad();setSynopsis("mini_Data-Colour-CIE.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/Data-Colour-CIE.html">Source</a></li><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul><p class="caption">colour-2.3.3: A model for human colour/color perception</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Safe Haskell</th><td>Safe</td></tr><tr><th>Language</th><td>Haskell98</td></tr></table><p class="caption">Data.Colour.CIE</p></div><div id="description"><p class="caption">Description</p><div class="doc"><p>Colour operations defined by the International Commission on
Illumination (CIE).</p></div></div><div id="synopsis"><p id="control.syn" class="caption expander" onclick="toggleSection('syn')">Synopsis</p><ul id="section.syn" class="hide" onclick="toggleSection('syn')"><li class="src short"><span class="keyword">data</span> <a href="#t:Colour">Colour</a> a</li><li class="src short"><a href="#v:cieXYZ">cieXYZ</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Fractional">Fractional</a> a => a -> a -> a -> <a href="Data-Colour-CIE.html#t:Colour">Colour</a> a</li><li class="src short"><a href="#v:cieXYZView">cieXYZView</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Fractional">Fractional</a> a => <a href="Data-Colour-CIE.html#t:Colour">Colour</a> a -> (a, a, a)</li><li class="src short"><a href="#v:luminance">luminance</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Fractional">Fractional</a> a => <a href="Data-Colour-CIE.html#t:Colour">Colour</a> a -> a</li><li class="src short"><a href="#v:toCIEXYZ">toCIEXYZ</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Fractional">Fractional</a> a => <a href="Data-Colour-CIE.html#t:Colour">Colour</a> a -> (a, a, a)</li><li class="src short"><span class="keyword">data</span> <a href="#t:Chromaticity">Chromaticity</a> a</li><li class="src short"><a href="#v:mkChromaticity">mkChromaticity</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Fractional">Fractional</a> a => a -> a -> <a href="Data-Colour-CIE.html#t:Chromaticity">Chromaticity</a> a</li><li class="src short"><a href="#v:chromaCoords">chromaCoords</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Fractional">Fractional</a> a => <a href="Data-Colour-CIE.html#t:Chromaticity">Chromaticity</a> a -> (a, a, a)</li><li class="src short"><a href="#v:chromaX">chromaX</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Fractional">Fractional</a> a => <a href="Data-Colour-CIE.html#t:Chromaticity">Chromaticity</a> a -> a</li><li class="src short"><a href="#v:chromaY">chromaY</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Fractional">Fractional</a> a => <a href="Data-Colour-CIE.html#t:Chromaticity">Chromaticity</a> a -> a</li><li class="src short"><a href="#v:chromaZ">chromaZ</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Fractional">Fractional</a> a => <a href="Data-Colour-CIE.html#t:Chromaticity">Chromaticity</a> a -> a</li><li class="src short"><a href="#v:chromaConvert">chromaConvert</a> :: (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Fractional">Fractional</a> b, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Real">Real</a> a) => <a href="Data-Colour-CIE.html#t:Chromaticity">Chromaticity</a> a -> <a href="Data-Colour-CIE.html#t:Chromaticity">Chromaticity</a> b</li><li class="src short"><a href="#v:chromaColour">chromaColour</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Fractional">Fractional</a> a => <a href="Data-Colour-CIE.html#t:Chromaticity">Chromaticity</a> a -> a -> <a href="Data-Colour-CIE.html#t:Colour">Colour</a> a</li><li class="src short"><a href="#v:lightness">lightness</a> :: (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Ord.html#t:Ord">Ord</a> a, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Floating">Floating</a> a) => <a href="Data-Colour-CIE.html#t:Chromaticity">Chromaticity</a> a -> <a href="Data-Colour-CIE.html#t:Colour">Colour</a> a -> a</li><li class="src short"><a href="#v:cieLABView">cieLABView</a> :: (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Ord.html#t:Ord">Ord</a> a, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Floating">Floating</a> a) => <a href="Data-Colour-CIE.html#t:Chromaticity">Chromaticity</a> a -> <a href="Data-Colour-CIE.html#t:Colour">Colour</a> a -> (a, a, a)</li><li class="src short"><a href="#v:cieLAB">cieLAB</a> :: (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Ord.html#t:Ord">Ord</a> a, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Floating">Floating</a> a) => <a href="Data-Colour-CIE.html#t:Chromaticity">Chromaticity</a> a -> a -> a -> a -> <a href="Data-Colour-CIE.html#t:Colour">Colour</a> a</li></ul></div><div id="interface"><h1>Documentation</h1><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:Colour" class="def">Colour</a> a <a href="src/Data-Colour-Internal.html#Colour" class="link">Source</a></p><div class="doc"><p>This type represents the human preception of colour.
The <code>a</code> parameter is a numeric type used internally for the
representation.</p><p>The <code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Monoid.html#t:Monoid">Monoid</a></code> instance allows one to add colours, but beware that adding
colours can take you out of gamut. Consider using <code><a href="Data-Colour.html#v:blend">blend</a></code> whenever
possible.</p></div><div class="subs instances"><p id="control.i:Colour" class="caption collapser" onclick="toggleSection('i:Colour')">Instances</p><div id="section.i:Colour" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><a href="Data-Colour.html#t:ColourOps">ColourOps</a> <a href="Data-Colour-CIE.html#t:Colour">Colour</a></span> <a href="src/Data-Colour-Internal.html#line-156" class="link">Source</a></td><td class="doc empty"> </td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="Data-Colour.html#t:AffineSpace">AffineSpace</a> <a href="Data-Colour-CIE.html#t:Colour">Colour</a></span> <a href="src/Data-Colour-Internal.html#line-130" class="link">Source</a></td><td class="doc empty"> </td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Eq.html#t:Eq">Eq</a> a => <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Eq.html#t:Eq">Eq</a> (<a href="Data-Colour-CIE.html#t:Colour">Colour</a> a)</span> <a href="src/Data-Colour-Internal.html#line-44" class="link">Source</a></td><td class="doc empty"> </td></tr><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Num">Num</a> a => <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Monoid.html#t:Monoid">Monoid</a> (<a href="Data-Colour-CIE.html#t:Colour">Colour</a> a)</span> <a href="src/Data-Colour-Internal.html#line-56" class="link">Source</a></td><td class="doc empty"> </td></tr></table></div></div></div><div class="top"><p class="src"><a name="v:cieXYZ" class="def">cieXYZ</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Fractional">Fractional</a> a => a -> a -> a -> <a href="Data-Colour-CIE.html#t:Colour">Colour</a> a <a href="src/Data-Colour-CIE.html#cieXYZ" class="link">Source</a></p><div class="doc"><p>Construct a <code><a href="Data-Colour-CIE.html#t:Colour">Colour</a></code> from XYZ coordinates for the 2° standard
(colourimetric) observer.</p></div></div><div class="top"><p class="src"><a name="v:cieXYZView" class="def">cieXYZView</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Fractional">Fractional</a> a => <a href="Data-Colour-CIE.html#t:Colour">Colour</a> a -> (a, a, a) <a href="src/Data-Colour-CIE.html#cieXYZView" class="link">Source</a></p><div class="doc"><p>Returns the XYZ colour coordinates for the 2° standard
(colourimetric) observer.</p></div></div><div class="top"><p class="src"><a name="v:luminance" class="def">luminance</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Fractional">Fractional</a> a => <a href="Data-Colour-CIE.html#t:Colour">Colour</a> a -> a <a href="src/Data-Colour-CIE.html#luminance" class="link">Source</a></p><div class="doc"><p>Returns the Y colour coordinate (luminance) for the 2° standard
(colourimetric) observer.</p></div></div><div class="top"><p class="src"><a name="v:toCIEXYZ" class="def">toCIEXYZ</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Fractional">Fractional</a> a => <a href="Data-Colour-CIE.html#t:Colour">Colour</a> a -> (a, a, a) <a href="src/Data-Colour-CIE.html#toCIEXYZ" class="link">Source</a></p><div class="doc"><div class="warning"><p>Deprecated: <code><a href="Data-Colour-CIE.html#v:toCIEXYZ">toCIEXYZ</a></code> has been renamed <code><a href="Data-Colour-CIE.html#v:cieXYZView">cieXYZView</a></code></p></div></div></div><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:Chromaticity" class="def">Chromaticity</a> a <a href="src/Data-Colour-CIE-Chromaticity.html#Chromaticity" class="link">Source</a></p><div class="subs instances"><p id="control.i:Chromaticity" class="caption collapser" onclick="toggleSection('i:Chromaticity')">Instances</p><div id="section.i:Chromaticity" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Eq.html#t:Eq">Eq</a> a => <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Eq.html#t:Eq">Eq</a> (<a href="Data-Colour-CIE.html#t:Chromaticity">Chromaticity</a> a)</span> <a href="src/Data-Colour-CIE-Chromaticity.html#line-25" class="link">Source</a></td><td class="doc empty"> </td></tr><tr><td class="src clearfix"><span class="inst-left">(<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Fractional">Fractional</a> a, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Text-Read.html#t:Read">Read</a> a) => <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Text-Read.html#t:Read">Read</a> (<a href="Data-Colour-CIE.html#t:Chromaticity">Chromaticity</a> a)</span> <a href="src/Data-Colour-CIE-Chromaticity.html#line-63" class="link">Source</a></td><td class="doc empty"> </td></tr><tr><td class="src clearfix"><span class="inst-left">(<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Fractional">Fractional</a> a, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Text-Show.html#t:Show">Show</a> a) => <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Text-Show.html#t:Show">Show</a> (<a href="Data-Colour-CIE.html#t:Chromaticity">Chromaticity</a> a)</span> <a href="src/Data-Colour-CIE-Chromaticity.html#line-56" class="link">Source</a></td><td class="doc empty"> </td></tr></table></div></div></div><div class="top"><p class="src"><a name="v:mkChromaticity" class="def">mkChromaticity</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Fractional">Fractional</a> a => a -> a -> <a href="Data-Colour-CIE.html#t:Chromaticity">Chromaticity</a> a <a href="src/Data-Colour-CIE-Chromaticity.html#mkChromaticity" class="link">Source</a></p><div class="doc"><p>Constructs <code><a href="Data-Colour-CIE.html#t:Chromaticity">Chromaticity</a></code> from the CIE little <em>x</em>, little <em>y</em>
coordinates for the 2° standard (colourimetric) observer.</p></div></div><div class="top"><p class="src"><a name="v:chromaCoords" class="def">chromaCoords</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Fractional">Fractional</a> a => <a href="Data-Colour-CIE.html#t:Chromaticity">Chromaticity</a> a -> (a, a, a) <a href="src/Data-Colour-CIE-Chromaticity.html#chromaCoords" class="link">Source</a></p><div class="doc"><p>Returns the CIE little <em>x</em>, little <em>y</em>, little <em>z</em> coordinates
for the 2° standard (colourimetric) observer.</p></div></div><div class="top"><p class="src"><a name="v:chromaX" class="def">chromaX</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Fractional">Fractional</a> a => <a href="Data-Colour-CIE.html#t:Chromaticity">Chromaticity</a> a -> a <a href="src/Data-Colour-CIE-Chromaticity.html#chromaX" class="link">Source</a></p><div class="doc"><p>Returns the CIE little <em>x</em> coordinate
for the 2° standard (colourimetric) observer.</p></div></div><div class="top"><p class="src"><a name="v:chromaY" class="def">chromaY</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Fractional">Fractional</a> a => <a href="Data-Colour-CIE.html#t:Chromaticity">Chromaticity</a> a -> a <a href="src/Data-Colour-CIE-Chromaticity.html#chromaY" class="link">Source</a></p><div class="doc"><p>Returns the CIE little <em>y</em> coordinate
for the 2° standard (colourimetric) observer.</p></div></div><div class="top"><p class="src"><a name="v:chromaZ" class="def">chromaZ</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Fractional">Fractional</a> a => <a href="Data-Colour-CIE.html#t:Chromaticity">Chromaticity</a> a -> a <a href="src/Data-Colour-CIE-Chromaticity.html#chromaZ" class="link">Source</a></p><div class="doc"><p>Returns the CIE little <em>z</em> coordinate
for the 2° standard (colourimetric) observer.</p></div></div><div class="top"><p class="src"><a name="v:chromaConvert" class="def">chromaConvert</a> :: (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Fractional">Fractional</a> b, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Real">Real</a> a) => <a href="Data-Colour-CIE.html#t:Chromaticity">Chromaticity</a> a -> <a href="Data-Colour-CIE.html#t:Chromaticity">Chromaticity</a> b <a href="src/Data-Colour-CIE-Chromaticity.html#chromaConvert" class="link">Source</a></p><div class="doc"><p>Change the type used to represent the chromaticity coordinates.</p></div></div><div class="top"><p class="src"><a name="v:chromaColour" class="def">chromaColour</a> <a href="src/Data-Colour-CIE.html#chromaColour" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Fractional">Fractional</a> a</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="Data-Colour-CIE.html#t:Chromaticity">Chromaticity</a> a</td><td class="doc empty"> </td></tr><tr><td class="src">-> a</td><td class="doc"><p><code><a href="Data-Colour-CIE.html#v:luminance">luminance</a></code></p></td></tr><tr><td class="src">-> <a href="Data-Colour-CIE.html#t:Colour">Colour</a> a</td><td class="doc empty"> </td></tr></table></div><div class="doc"><p>Constructs a colour from the given <code><a href="Data-Colour-CIE.html#t:Chromaticity">Chromaticity</a></code> and <code><a href="Data-Colour-CIE.html#v:luminance">luminance</a></code>.</p></div></div><div class="top"><p class="src"><a name="v:lightness" class="def">lightness</a> <a href="src/Data-Colour-CIE.html#lightness" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Ord.html#t:Ord">Ord</a> a, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Floating">Floating</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="Data-Colour-CIE.html#t:Chromaticity">Chromaticity</a> a</td><td class="doc"><p>White point</p></td></tr><tr><td class="src">-> <a href="Data-Colour-CIE.html#t:Colour">Colour</a> a</td><td class="doc empty"> </td></tr><tr><td class="src">-> a</td><td class="doc empty"> </td></tr></table></div><div class="doc"><p>Returns the lightness of a colour with respect to a given white point.
Lightness is a perceptually uniform measure.</p></div></div><div class="top"><p class="src"><a name="v:cieLABView" class="def">cieLABView</a> <a href="src/Data-Colour-CIE.html#cieLABView" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Ord.html#t:Ord">Ord</a> a, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Floating">Floating</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="Data-Colour-CIE.html#t:Chromaticity">Chromaticity</a> a</td><td class="doc"><p>White point</p></td></tr><tr><td class="src">-> <a href="Data-Colour-CIE.html#t:Colour">Colour</a> a</td><td class="doc empty"> </td></tr><tr><td class="src">-> (a, a, a)</td><td class="doc empty"> </td></tr></table></div><div class="doc"><p>Returns the CIELAB coordinates of a colour, which is a
perceptually uniform colour space.
The first coordinate is <code><a href="Data-Colour-CIE.html#v:lightness">lightness</a></code>.
If you don't know what white point to use, use
<code><a href="Data-Colour-CIE-Illuminant.html#v:d65">d65</a></code>.</p></div></div><div class="top"><p class="src"><a name="v:cieLAB" class="def">cieLAB</a> <a href="src/Data-Colour-CIE.html#cieLAB" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Ord.html#t:Ord">Ord</a> a, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Floating">Floating</a> a)</td><td class="doc empty"> </td></tr><tr><td class="src">=> <a href="Data-Colour-CIE.html#t:Chromaticity">Chromaticity</a> a</td><td class="doc"><p>White point</p></td></tr><tr><td class="src">-> a</td><td class="doc"><p>L* coordinate (lightness)</p></td></tr><tr><td class="src">-> a</td><td class="doc"><p>a* coordinate</p></td></tr><tr><td class="src">-> a</td><td class="doc"><p>b* coordinate</p></td></tr><tr><td class="src">-> <a href="Data-Colour-CIE.html#t:Colour">Colour</a> a</td><td class="doc empty"> </td></tr></table></div><div class="doc"><p>Returns the colour for given CIELAB coordinates, which is a
perceptually uniform colour space.
If you don't know what white point to use, use
<code><a href="Data-Colour-CIE-Illuminant.html#v:d65">d65</a></code>.</p></div></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.16.1</p></div></body></html>
|