~diresu/blender/blender-command-port

« back to all changes in this revision

Viewing changes to release/scripts/bpymodules/dxfColorMap.py

  • Committer: theeth
  • Date: 2008-10-14 16:52:04 UTC
  • Revision ID: vcs-imports@canonical.com-20081014165204-r32w2gm6s0osvdhn
copy back trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# dictionary mapping AutoCAD color indexes with Blender colors
 
2
 
 
3
# --------------------------------------------------------------------------
 
4
# color_map.py Final by Ed Blake (AKA Kitsu)
 
5
# --------------------------------------------------------------------------
 
6
# ***** BEGIN GPL LICENSE BLOCK *****
 
7
#
 
8
# This program is free software; you can redistribute it and/or
 
9
# modify it under the terms of the GNU General Public License
 
10
# as published by the Free Software Foundation; either version 2
 
11
# of the License, or (at your option) any later version.
 
12
#
 
13
# This program is distributed in the hope that it will be useful,
 
14
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
15
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
16
# GNU General Public License for more details.
 
17
#
 
18
# You should have received a copy of the GNU General Public License
 
19
# along with this program; if not, write to the Free Software Foundation,
 
20
# Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 
21
#
 
22
# ***** END GPL LICENCE BLOCK *****
 
23
# --------------------------------------------------------------------------
 
24
 
 
25
color_map = {
 
26
    0:[0.0, 0.0, 0.0],
 
27
    1:[0.99609375, 0.0, 0.0],
 
28
    2:[0.99609375, 0.99609375, 0.0],
 
29
    3:[0.0, 0.99609375, 0.0],
 
30
    4:[0.0, 0.99609375, 0.99609375],
 
31
    5:[0.0, 0.0, 0.99609375],
 
32
    6:[0.99609375, 0.0, 0.99609375],
 
33
    7:[0.99609375, 0.99609375, 0.99609375],
 
34
    8:[0.25390625, 0.25390625, 0.25390625],
 
35
    9:[0.5, 0.5, 0.5],
 
36
    10:[0.99609375, 0.0, 0.0],
 
37
    11:[0.99609375, 0.6640625, 0.6640625],
 
38
    12:[0.73828125, 0.0, 0.0],
 
39
    13:[0.73828125, 0.4921875, 0.4921875],
 
40
    14:[0.50390625, 0.0, 0.0],
 
41
    15:[0.50390625, 0.3359375, 0.3359375],
 
42
    16:[0.40625, 0.0, 0.0],
 
43
    17:[0.40625, 0.26953125, 0.26953125],
 
44
    18:[0.30859375, 0.0, 0.0],
 
45
    19:[0.30859375, 0.20703125, 0.20703125],
 
46
    20:[0.99609375, 0.24609375, 0.0],
 
47
    21:[0.99609375, 0.74609375, 0.6640625],
 
48
    22:[0.73828125, 0.1796875, 0.0],
 
49
    23:[0.73828125, 0.55078125, 0.4921875],
 
50
    24:[0.50390625, 0.12109375, 0.0],
 
51
    25:[0.50390625, 0.375, 0.3359375],
 
52
    26:[0.40625, 0.09765625, 0.0],
 
53
    27:[0.40625, 0.3046875, 0.26953125],
 
54
    28:[0.30859375, 0.07421875, 0.0],
 
55
    29:[0.30859375, 0.23046875, 0.20703125],
 
56
    30:[0.99609375, 0.49609375, 0.0],
 
57
    31:[0.99609375, 0.828125, 0.6640625],
 
58
    32:[0.73828125, 0.3671875, 0.0],
 
59
    33:[0.73828125, 0.61328125, 0.4921875],
 
60
    34:[0.50390625, 0.25, 0.0],
 
61
    35:[0.50390625, 0.41796875, 0.3359375],
 
62
    36:[0.40625, 0.203125, 0.0],
 
63
    37:[0.40625, 0.3359375, 0.26953125],
 
64
    38:[0.30859375, 0.15234375, 0.0],
 
65
    39:[0.30859375, 0.2578125, 0.20703125],
 
66
    40:[0.99609375, 0.74609375, 0.0],
 
67
    41:[0.99609375, 0.9140625, 0.6640625],
 
68
    42:[0.73828125, 0.55078125, 0.0],
 
69
    43:[0.73828125, 0.67578125, 0.4921875],
 
70
    44:[0.50390625, 0.375, 0.0],
 
71
    45:[0.50390625, 0.4609375, 0.3359375],
 
72
    46:[0.40625, 0.3046875, 0.0],
 
73
    47:[0.40625, 0.37109375, 0.26953125],
 
74
    48:[0.30859375, 0.23046875, 0.0],
 
75
    49:[0.30859375, 0.28515625, 0.20703125],
 
76
    50:[0.99609375, 0.99609375, 0.0],
 
77
    51:[0.99609375, 0.99609375, 0.6640625],
 
78
    52:[0.73828125, 0.73828125, 0.0],
 
79
    53:[0.73828125, 0.73828125, 0.4921875],
 
80
    54:[0.50390625, 0.50390625, 0.0],
 
81
    55:[0.50390625, 0.50390625, 0.3359375],
 
82
    56:[0.40625, 0.40625, 0.0],
 
83
    57:[0.40625, 0.40625, 0.26953125],
 
84
    58:[0.30859375, 0.30859375, 0.0],
 
85
    59:[0.30859375, 0.30859375, 0.20703125],
 
86
    60:[0.74609375, 0.99609375, 0.0],
 
87
    61:[0.9140625, 0.99609375, 0.6640625],
 
88
    62:[0.55078125, 0.73828125, 0.0],
 
89
    63:[0.67578125, 0.73828125, 0.4921875],
 
90
    64:[0.375, 0.50390625, 0.0],
 
91
    65:[0.4609375, 0.50390625, 0.3359375],
 
92
    66:[0.3046875, 0.40625, 0.0],
 
93
    67:[0.37109375, 0.40625, 0.26953125],
 
94
    68:[0.23046875, 0.30859375, 0.0],
 
95
    69:[0.28515625, 0.30859375, 0.20703125],
 
96
    70:[0.49609375, 0.99609375, 0.0],
 
97
    71:[0.828125, 0.99609375, 0.6640625],
 
98
    72:[0.3671875, 0.73828125, 0.0],
 
99
    73:[0.61328125, 0.73828125, 0.4921875],
 
100
    74:[0.25, 0.50390625, 0.0],
 
101
    75:[0.41796875, 0.50390625, 0.3359375],
 
102
    76:[0.203125, 0.40625, 0.0],
 
103
    77:[0.3359375, 0.40625, 0.26953125],
 
104
    78:[0.15234375, 0.30859375, 0.0],
 
105
    79:[0.2578125, 0.30859375, 0.20703125],
 
106
    80:[0.24609375, 0.99609375, 0.0],
 
107
    81:[0.74609375, 0.99609375, 0.6640625],
 
108
    82:[0.1796875, 0.73828125, 0.0],
 
109
    83:[0.55078125, 0.73828125, 0.4921875],
 
110
    84:[0.12109375, 0.50390625, 0.0],
 
111
    85:[0.375, 0.50390625, 0.3359375],
 
112
    86:[0.09765625, 0.40625, 0.0],
 
113
    87:[0.3046875, 0.40625, 0.26953125],
 
114
    88:[0.07421875, 0.30859375, 0.0],
 
115
    89:[0.23046875, 0.30859375, 0.20703125],
 
116
    90:[0.0, 0.99609375, 0.0],
 
117
    91:[0.6640625, 0.99609375, 0.6640625],
 
118
    92:[0.0, 0.73828125, 0.0],
 
119
    93:[0.4921875, 0.73828125, 0.4921875],
 
120
    94:[0.0, 0.50390625, 0.0],
 
121
    95:[0.3359375, 0.50390625, 0.3359375],
 
122
    96:[0.0, 0.40625, 0.0],
 
123
    97:[0.26953125, 0.40625, 0.26953125],
 
124
    98:[0.0, 0.30859375, 0.0],
 
125
    99:[0.20703125, 0.30859375, 0.20703125],
 
126
    100:[0.0, 0.99609375, 0.24609375],
 
127
    101:[0.6640625, 0.99609375, 0.74609375],
 
128
    102:[0.0, 0.73828125, 0.1796875],
 
129
    103:[0.4921875, 0.73828125, 0.55078125],
 
130
    104:[0.0, 0.50390625, 0.12109375],
 
131
    105:[0.3359375, 0.50390625, 0.375],
 
132
    106:[0.0, 0.40625, 0.09765625],
 
133
    107:[0.26953125, 0.40625, 0.3046875],
 
134
    108:[0.0, 0.30859375, 0.07421875],
 
135
    109:[0.20703125, 0.30859375, 0.23046875],
 
136
    110:[0.0, 0.99609375, 0.49609375],
 
137
    111:[0.6640625, 0.99609375, 0.828125],
 
138
    112:[0.0, 0.73828125, 0.3671875],
 
139
    113:[0.4921875, 0.73828125, 0.61328125],
 
140
    114:[0.0, 0.50390625, 0.25],
 
141
    115:[0.3359375, 0.50390625, 0.41796875],
 
142
    116:[0.0, 0.40625, 0.203125],
 
143
    117:[0.26953125, 0.40625, 0.3359375],
 
144
    118:[0.0, 0.30859375, 0.15234375],
 
145
    119:[0.20703125, 0.30859375, 0.2578125],
 
146
    120:[0.0, 0.99609375, 0.74609375],
 
147
    121:[0.6640625, 0.99609375, 0.9140625],
 
148
    122:[0.0, 0.73828125, 0.55078125],
 
149
    123:[0.4921875, 0.73828125, 0.67578125],
 
150
    124:[0.0, 0.50390625, 0.375],
 
151
    125:[0.3359375, 0.50390625, 0.4609375],
 
152
    126:[0.0, 0.40625, 0.3046875],
 
153
    127:[0.26953125, 0.40625, 0.37109375],
 
154
    128:[0.0, 0.30859375, 0.23046875],
 
155
    129:[0.20703125, 0.30859375, 0.28515625],
 
156
    130:[0.0, 0.99609375, 0.99609375],
 
157
    131:[0.6640625, 0.99609375, 0.99609375],
 
158
    132:[0.0, 0.73828125, 0.73828125],
 
159
    133:[0.4921875, 0.73828125, 0.73828125],
 
160
    134:[0.0, 0.50390625, 0.50390625],
 
161
    135:[0.3359375, 0.50390625, 0.50390625],
 
162
    136:[0.0, 0.40625, 0.40625],
 
163
    137:[0.26953125, 0.40625, 0.40625],
 
164
    138:[0.0, 0.30859375, 0.30859375],
 
165
    139:[0.20703125, 0.30859375, 0.30859375],
 
166
    140:[0.0, 0.74609375, 0.99609375],
 
167
    141:[0.6640625, 0.9140625, 0.99609375],
 
168
    142:[0.0, 0.55078125, 0.73828125],
 
169
    143:[0.4921875, 0.67578125, 0.73828125],
 
170
    144:[0.0, 0.375, 0.50390625],
 
171
    145:[0.3359375, 0.4609375, 0.50390625],
 
172
    146:[0.0, 0.3046875, 0.40625],
 
173
    147:[0.26953125, 0.37109375, 0.40625],
 
174
    148:[0.0, 0.23046875, 0.30859375],
 
175
    149:[0.20703125, 0.28515625, 0.30859375],
 
176
    150:[0.0, 0.49609375, 0.99609375],
 
177
    151:[0.6640625, 0.828125, 0.99609375],
 
178
    152:[0.0, 0.3671875, 0.73828125],
 
179
    153:[0.4921875, 0.61328125, 0.73828125],
 
180
    154:[0.0, 0.25, 0.50390625],
 
181
    155:[0.3359375, 0.41796875, 0.50390625],
 
182
    156:[0.0, 0.203125, 0.40625],
 
183
    157:[0.26953125, 0.3359375, 0.40625],
 
184
    158:[0.0, 0.15234375, 0.30859375],
 
185
    159:[0.20703125, 0.2578125, 0.30859375],
 
186
    160:[0.0, 0.24609375, 0.99609375],
 
187
    161:[0.6640625, 0.74609375, 0.99609375],
 
188
    162:[0.0, 0.1796875, 0.73828125],
 
189
    163:[0.4921875, 0.55078125, 0.73828125],
 
190
    164:[0.0, 0.12109375, 0.50390625],
 
191
    165:[0.3359375, 0.375, 0.50390625],
 
192
    166:[0.0, 0.09765625, 0.40625],
 
193
    167:[0.26953125, 0.3046875, 0.40625],
 
194
    168:[0.0, 0.07421875, 0.30859375],
 
195
    169:[0.20703125, 0.23046875, 0.30859375],
 
196
    170:[0.0, 0.0, 0.99609375],
 
197
    171:[0.6640625, 0.6640625, 0.99609375],
 
198
    172:[0.0, 0.0, 0.73828125],
 
199
    173:[0.4921875, 0.4921875, 0.73828125],
 
200
    174:[0.0, 0.0, 0.50390625],
 
201
    175:[0.3359375, 0.3359375, 0.50390625],
 
202
    176:[0.0, 0.0, 0.40625],
 
203
    177:[0.26953125, 0.26953125, 0.40625],
 
204
    178:[0.0, 0.0, 0.30859375],
 
205
    179:[0.20703125, 0.20703125, 0.30859375],
 
206
    180:[0.24609375, 0.0, 0.99609375],
 
207
    181:[0.74609375, 0.6640625, 0.99609375],
 
208
    182:[0.1796875, 0.0, 0.73828125],
 
209
    183:[0.55078125, 0.4921875, 0.73828125],
 
210
    184:[0.12109375, 0.0, 0.50390625],
 
211
    185:[0.375, 0.3359375, 0.50390625],
 
212
    186:[0.09765625, 0.0, 0.40625],
 
213
    187:[0.3046875, 0.26953125, 0.40625],
 
214
    188:[0.07421875, 0.0, 0.30859375],
 
215
    189:[0.23046875, 0.20703125, 0.30859375],
 
216
    190:[0.49609375, 0.0, 0.99609375],
 
217
    191:[0.828125, 0.6640625, 0.99609375],
 
218
    192:[0.3671875, 0.0, 0.73828125],
 
219
    193:[0.61328125, 0.4921875, 0.73828125],
 
220
    194:[0.25, 0.0, 0.50390625],
 
221
    195:[0.41796875, 0.3359375, 0.50390625],
 
222
    196:[0.203125, 0.0, 0.40625],
 
223
    197:[0.3359375, 0.26953125, 0.40625],
 
224
    198:[0.15234375, 0.0, 0.30859375],
 
225
    199:[0.2578125, 0.20703125, 0.30859375],
 
226
    200:[0.74609375, 0.0, 0.99609375],
 
227
    201:[0.9140625, 0.6640625, 0.99609375],
 
228
    202:[0.55078125, 0.0, 0.73828125],
 
229
    203:[0.67578125, 0.4921875, 0.73828125],
 
230
    204:[0.375, 0.0, 0.50390625],
 
231
    205:[0.4609375, 0.3359375, 0.50390625],
 
232
    206:[0.3046875, 0.0, 0.40625],
 
233
    207:[0.37109375, 0.26953125, 0.40625],
 
234
    208:[0.23046875, 0.0, 0.30859375],
 
235
    209:[0.28515625, 0.20703125, 0.30859375],
 
236
    210:[0.99609375, 0.0, 0.99609375],
 
237
    211:[0.99609375, 0.6640625, 0.99609375],
 
238
    212:[0.73828125, 0.0, 0.73828125],
 
239
    213:[0.73828125, 0.4921875, 0.73828125],
 
240
    214:[0.50390625, 0.0, 0.50390625],
 
241
    215:[0.50390625, 0.3359375, 0.50390625],
 
242
    216:[0.40625, 0.0, 0.40625],
 
243
    217:[0.40625, 0.26953125, 0.40625],
 
244
    218:[0.30859375, 0.0, 0.30859375],
 
245
    219:[0.30859375, 0.20703125, 0.30859375],
 
246
    220:[0.99609375, 0.0, 0.74609375],
 
247
    221:[0.99609375, 0.6640625, 0.9140625],
 
248
    222:[0.73828125, 0.0, 0.55078125],
 
249
    223:[0.73828125, 0.4921875, 0.67578125],
 
250
    224:[0.50390625, 0.0, 0.375],
 
251
    225:[0.50390625, 0.3359375, 0.4609375],
 
252
    226:[0.40625, 0.0, 0.3046875],
 
253
    227:[0.40625, 0.26953125, 0.37109375],
 
254
    228:[0.30859375, 0.0, 0.23046875],
 
255
    229:[0.30859375, 0.20703125, 0.28515625],
 
256
    230:[0.99609375, 0.0, 0.49609375],
 
257
    231:[0.99609375, 0.6640625, 0.828125],
 
258
    232:[0.73828125, 0.0, 0.3671875],
 
259
    233:[0.73828125, 0.4921875, 0.61328125],
 
260
    234:[0.50390625, 0.0, 0.25],
 
261
    235:[0.50390625, 0.3359375, 0.41796875],
 
262
    236:[0.40625, 0.0, 0.203125],
 
263
    237:[0.40625, 0.26953125, 0.3359375],
 
264
    238:[0.30859375, 0.0, 0.15234375],
 
265
    239:[0.30859375, 0.20703125, 0.2578125],
 
266
    240:[0.99609375, 0.0, 0.24609375],
 
267
    241:[0.99609375, 0.6640625, 0.74609375],
 
268
    242:[0.73828125, 0.0, 0.1796875],
 
269
    243:[0.73828125, 0.4921875, 0.55078125],
 
270
    244:[0.50390625, 0.0, 0.12109375],
 
271
    245:[0.50390625, 0.3359375, 0.375],
 
272
    246:[0.40625, 0.0, 0.09765625],
 
273
    247:[0.40625, 0.26953125, 0.3046875],
 
274
    248:[0.30859375, 0.0, 0.07421875],
 
275
    249:[0.30859375, 0.20703125, 0.23046875],
 
276
    250:[0.19921875, 0.19921875, 0.19921875],
 
277
    251:[0.3125, 0.3125, 0.3125],
 
278
    252:[0.41015625, 0.41015625, 0.41015625],
 
279
    253:[0.5078125, 0.5078125, 0.5078125],
 
280
    254:[0.7421875, 0.7421875, 0.7421875],
 
281
    255:[0.99609375, 0.99609375, 0.99609375],
 
282
}