Package AccessEngine :: Package AEConstants :: Module Color
[hide private]
[frames] | no frames]

Source Code for Module AccessEngine.AEConstants.Color

 1  ''' 
 2  Color related constants. 
 3   
 4  @var COLOR_MAP: Mapping from a six bit palette of colors to names describing 
 5    them 
 6  @type COLOR_MAP: dictionary 
 7   
 8  @author: Peter Parente 
 9  @organization: IBM Corporation 
10  @copyright: Copyright (c) 2005, 2007 IBM Corporation 
11  @license: The BSD License 
12   
13  All rights reserved. This program and the accompanying materials are made  
14  available under the terms of the BSD license which accompanies 
15  this distribution, and is available at 
16  U{http://www.opensource.org/licenses/bsd-license.php} 
17  ''' 
18  from Tools.i18n import _ 
19  COLOR_MAP = { 
20    0:_('black'), 
21    1:_('dark purple'), 
22    2:_('dark blue'), 
23    3:_('blue'),  
24    4:_('dark green'), 
25    5:_('dark cyan'), 
26    6:_('aqua'),  
27    7:_('medium blue'), 
28    8:_('dark green'), 
29    9:_('lime green'),  
30    10:_('dark cyan'), 
31    11:_('aqua'), 
32    12:_('green'),  
33    13:_('bright green'), 
34    14:_('blue green'), 
35    15:_('cyan'), 
36    16:_('dark red'), 
37    17:_('magenta'), 
38    18:_('purple'), 
39    19:_('purple'),  
40    20:_('olive green'), 
41    21:_('medium grey'), 
42    22:_('steel blue'), 
43    23:_('blue grey'), 
44    24:_('green'), 
45    25:_('pale green'),  
46    26:_('blue grey'), 
47    27:_('light blue'), 
48    28:_('light green'),  
49    29:_('light green'), 
50    30:_('cyan'), 
51    31:_('light blue'),  
52    32:_('dark red'), 
53    33:_('magenta'), 
54    34:_('dark pink'), 
55    35:_('purple'), 
56    36:_('light brown'), 
57    37:_('flesh'), 
58    38:_('pink'),  
59    39:_('light purple'), 
60    40:_('olive green'), 
61    41:_('light grey'), 
62    42:_('dark grey'), 
63    43:_('light blue'), 
64    44:_('light green'),  
65    45:_('pale green'), 
66    46:_('pale green'), 
67    47:_('light blue'),  
68    48:_('red'),  
69    49:_('pink'),  
70    50:_('pink'),  
71    51:_('pink'),  
72    52:_('orange'),  
73    53:_('puce'),  
74    54:_('pink'),  
75    55:_('pink'),  
76    56:_('dark yellow'),  
77    57:_('tan'),  
78    58:_('light pink'),  
79    59:_('light pink'), 
80    60:_('yellow'), 
81    61:_('pale yellow'),  
82    62:_('off white'), 
83    63:_('white') } 
84