~ubuntu-branches/ubuntu/oneiric/haskell-colour/oneiric

« back to all changes in this revision

Viewing changes to Data/Colour/CIE/Illuminant.hs

  • Committer: Bazaar Package Importer
  • Author(s): Marco Túlio Gontijo e Silva
  • Date: 2010-05-30 16:02:29 UTC
  • Revision ID: james.westby@ubuntu.com-20100530160229-42f17ki2m313haz3
Tags: upstream-2.3.1
Import upstream version 2.3.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
{-
 
2
Copyright (c) 2008
 
3
Russell O'Connor
 
4
 
 
5
Permission is hereby granted, free of charge, to any person obtaining a copy
 
6
of this software and associated documentation files (the "Software"), to deal
 
7
in the Software without restriction, including without limitation the rights
 
8
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 
9
copies of the Software, and to permit persons to whom the Software is
 
10
furnished to do so, subject to the following conditions:
 
11
 
 
12
The above copyright notice and this permission notice shall be included in
 
13
all copies or substantial portions of the Software.
 
14
 
 
15
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 
16
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 
17
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 
18
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 
19
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 
20
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 
21
THE SOFTWARE.
 
22
-}
 
23
-- |Standard illuminants defined by the International Commission on 
 
24
-- Illumination (CIE).
 
25
module Data.Colour.CIE.Illuminant where
 
26
 
 
27
import Data.Colour.CIE.Chromaticity
 
28
 
 
29
-- |Incandescent \/ Tungsten
 
30
a   :: (Fractional a) => Chromaticity a
 
31
a   = mkChromaticity 0.44757 0.40745 
 
32
 
 
33
-- |{obsolete} Direct sunlight at noon
 
34
b   :: (Fractional a) => Chromaticity a
 
35
b   = mkChromaticity 0.34842 0.35161
 
36
 
 
37
-- |{obsolete} Average \/ North sky Daylight
 
38
c   :: (Fractional a) => Chromaticity a
 
39
c   = mkChromaticity 0.31006 0.31616
 
40
 
 
41
-- |Horizon Light. ICC profile PCS
 
42
d50 :: (Fractional a) => Chromaticity a
 
43
d50 = mkChromaticity 0.34567 0.35850
 
44
 
 
45
-- |Mid-morning \/ Mid-afternoon Daylight
 
46
d55 :: (Fractional a) => Chromaticity a
 
47
d55 = mkChromaticity 0.33242 0.34743
 
48
 
 
49
-- |Noon Daylight: Television, sRGB color space
 
50
d65 :: (Fractional a) => Chromaticity a
 
51
d65 = mkChromaticity 0.31271 0.32902
 
52
 
 
53
-- |North sky Daylight
 
54
d75 :: (Fractional a) => Chromaticity a
 
55
d75 = mkChromaticity 0.29902 0.31485
 
56
 
 
57
-- |Equal energy
 
58
e   :: (Fractional a) => Chromaticity a
 
59
e   = mkChromaticity (1/3)   (1/3)
 
60
 
 
61
-- |Daylight Fluorescent
 
62
f1  :: (Fractional a) => Chromaticity a
 
63
f1  = mkChromaticity 0.31310 0.33727
 
64
 
 
65
-- |Cool White Fluorescent
 
66
f2  :: (Fractional a) => Chromaticity a
 
67
f2  = mkChromaticity 0.37208 0.37529
 
68
 
 
69
-- |White Fluorescent
 
70
f3  :: (Fractional a) => Chromaticity a
 
71
f3  = mkChromaticity 0.40910 0.39430
 
72
 
 
73
-- |Warm White Fluorescent
 
74
f4  :: (Fractional a) => Chromaticity a
 
75
f4  = mkChromaticity 0.44018 0.40329
 
76
 
 
77
-- |Daylight Fluorescent
 
78
f5  :: (Fractional a) => Chromaticity a
 
79
f5  = mkChromaticity 0.31379 0.34531
 
80
 
 
81
-- |Lite White Fluorescent
 
82
f6  :: (Fractional a) => Chromaticity a
 
83
f6  = mkChromaticity 0.37790 0.38835
 
84
 
 
85
-- |D65 simulator, Daylight simulator
 
86
f7  :: (Fractional a) => Chromaticity a
 
87
f7  = mkChromaticity 0.31292 0.32933
 
88
 
 
89
-- |D50 simulator, Sylvania F40 Design 50
 
90
f8  :: (Fractional a) => Chromaticity a
 
91
f8  = mkChromaticity 0.34588 0.35875
 
92
 
 
93
-- |Cool White Deluxe Fluorescent
 
94
f9  :: (Fractional a) => Chromaticity a
 
95
f9  = mkChromaticity 0.37417 0.37281
 
96
 
 
97
-- |Philips TL85, Ultralume 50
 
98
f10 :: (Fractional a) => Chromaticity a
 
99
f10 = mkChromaticity 0.34609 0.35986
 
100
 
 
101
-- |Philips TL84, Ultralume 40
 
102
f11 :: (Fractional a) => Chromaticity a
 
103
f11 = mkChromaticity 0.38052 0.37713
 
104
 
 
105
-- |Philips TL83, Ultralume 30
 
106
f12 :: (Fractional a) => Chromaticity a
 
107
f12 = mkChromaticity 0.43695 0.40441
 
 
b'\\ No newline at end of file'