Debian Codegraph @

Resource/ColorSpace/sRGB

raw
1 % Copyright (C) 2001-2023 Artifex Software, Inc.
2 % All Rights Reserved.
3 %
4 % This software is provided AS-IS with no warranty, either express or
5 % implied.
6 %
7 % This software is distributed under license and may not be copied,
8 % modified or distributed except as expressly authorized under the terms
9 % of the license contained in the file LICENSE in this distribution.
10 %
11 % Refer to licensing information at http://www.artifex.com or contact
12 % Artifex Software, Inc., 39 Mesa Street, Suite 108A, San Francisco,
13 % CA 94129, USA, for further information.
14 %
15
16 % sRGB color space derived from the public domain HP sample.
17
18 currentglobal true setglobal
19
20 /sRGB
21 [ /CIEBasedABC
22 3 dict begin
23 /WhitePoint [ 0.9505 1 1.0890 ] def % D65
24
25 /DecodeLMN [ % sRGB gamma transform
26 { dup 0.03928 le { 12.92321 div } { 0.055 add 1.055 div 2.4 exp } ifelse }
27 bind dup dup ] def
28
29 /MatrixLMN [ % sRGB to XYZ (D65) matrix (ITU-R BT.709-2 Primaries)
30 0.412457 0.212673 0.019334
31 0.357576 0.715152 0.119192
32 0.180437 0.072175 0.950301 ] def
33 currentdict end
34 ]
35 /ColorSpace defineresource pop
36
37 setglobal