dxfColorMap.py

Go to the documentation of this file.
00001 # dictionary mapping AutoCAD color indexes with Blender colors
00002 
00003 # --------------------------------------------------------------------------
00004 # color_map.py Final by Ed Blake (AKA Kitsu)
00005 # --------------------------------------------------------------------------
00006 # ***** BEGIN GPL LICENSE BLOCK *****
00007 #
00008 # This program is free software; you can redistribute it and/or
00009 # modify it under the terms of the GNU General Public License
00010 # as published by the Free Software Foundation; either version 2
00011 # of the License, or (at your option) any later version.
00012 #
00013 # This program is distributed in the hope that it will be useful,
00014 # but WITHOUT ANY WARRANTY; without even the implied warranty of
00015 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00016 # GNU General Public License for more details.
00017 #
00018 # You should have received a copy of the GNU General Public License
00019 # along with this program; if not, write to the Free Software Foundation,
00020 # Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
00021 #
00022 # ***** END GPL LICENCE BLOCK *****
00023 # --------------------------------------------------------------------------
00024 
00025 color_map = {
00026     0:[0.0, 0.0, 0.0],
00027     1:[0.99609375, 0.0, 0.0],
00028     2:[0.99609375, 0.99609375, 0.0],
00029     3:[0.0, 0.99609375, 0.0],
00030     4:[0.0, 0.99609375, 0.99609375],
00031     5:[0.0, 0.0, 0.99609375],
00032     6:[0.99609375, 0.0, 0.99609375],
00033     7:[0.99609375, 0.99609375, 0.99609375],
00034     8:[0.25390625, 0.25390625, 0.25390625],
00035     9:[0.5, 0.5, 0.5],
00036     10:[0.99609375, 0.0, 0.0],
00037     11:[0.99609375, 0.6640625, 0.6640625],
00038     12:[0.73828125, 0.0, 0.0],
00039     13:[0.73828125, 0.4921875, 0.4921875],
00040     14:[0.50390625, 0.0, 0.0],
00041     15:[0.50390625, 0.3359375, 0.3359375],
00042     16:[0.40625, 0.0, 0.0],
00043     17:[0.40625, 0.26953125, 0.26953125],
00044     18:[0.30859375, 0.0, 0.0],
00045     19:[0.30859375, 0.20703125, 0.20703125],
00046     20:[0.99609375, 0.24609375, 0.0],
00047     21:[0.99609375, 0.74609375, 0.6640625],
00048     22:[0.73828125, 0.1796875, 0.0],
00049     23:[0.73828125, 0.55078125, 0.4921875],
00050     24:[0.50390625, 0.12109375, 0.0],
00051     25:[0.50390625, 0.375, 0.3359375],
00052     26:[0.40625, 0.09765625, 0.0],
00053     27:[0.40625, 0.3046875, 0.26953125],
00054     28:[0.30859375, 0.07421875, 0.0],
00055     29:[0.30859375, 0.23046875, 0.20703125],
00056     30:[0.99609375, 0.49609375, 0.0],
00057     31:[0.99609375, 0.828125, 0.6640625],
00058     32:[0.73828125, 0.3671875, 0.0],
00059     33:[0.73828125, 0.61328125, 0.4921875],
00060     34:[0.50390625, 0.25, 0.0],
00061     35:[0.50390625, 0.41796875, 0.3359375],
00062     36:[0.40625, 0.203125, 0.0],
00063     37:[0.40625, 0.3359375, 0.26953125],
00064     38:[0.30859375, 0.15234375, 0.0],
00065     39:[0.30859375, 0.2578125, 0.20703125],
00066     40:[0.99609375, 0.74609375, 0.0],
00067     41:[0.99609375, 0.9140625, 0.6640625],
00068     42:[0.73828125, 0.55078125, 0.0],
00069     43:[0.73828125, 0.67578125, 0.4921875],
00070     44:[0.50390625, 0.375, 0.0],
00071     45:[0.50390625, 0.4609375, 0.3359375],
00072     46:[0.40625, 0.3046875, 0.0],
00073     47:[0.40625, 0.37109375, 0.26953125],
00074     48:[0.30859375, 0.23046875, 0.0],
00075     49:[0.30859375, 0.28515625, 0.20703125],
00076     50:[0.99609375, 0.99609375, 0.0],
00077     51:[0.99609375, 0.99609375, 0.6640625],
00078     52:[0.73828125, 0.73828125, 0.0],
00079     53:[0.73828125, 0.73828125, 0.4921875],
00080     54:[0.50390625, 0.50390625, 0.0],
00081     55:[0.50390625, 0.50390625, 0.3359375],
00082     56:[0.40625, 0.40625, 0.0],
00083     57:[0.40625, 0.40625, 0.26953125],
00084     58:[0.30859375, 0.30859375, 0.0],
00085     59:[0.30859375, 0.30859375, 0.20703125],
00086     60:[0.74609375, 0.99609375, 0.0],
00087     61:[0.9140625, 0.99609375, 0.6640625],
00088     62:[0.55078125, 0.73828125, 0.0],
00089     63:[0.67578125, 0.73828125, 0.4921875],
00090     64:[0.375, 0.50390625, 0.0],
00091     65:[0.4609375, 0.50390625, 0.3359375],
00092     66:[0.3046875, 0.40625, 0.0],
00093     67:[0.37109375, 0.40625, 0.26953125],
00094     68:[0.23046875, 0.30859375, 0.0],
00095     69:[0.28515625, 0.30859375, 0.20703125],
00096     70:[0.49609375, 0.99609375, 0.0],
00097     71:[0.828125, 0.99609375, 0.6640625],
00098     72:[0.3671875, 0.73828125, 0.0],
00099     73:[0.61328125, 0.73828125, 0.4921875],
00100     74:[0.25, 0.50390625, 0.0],
00101     75:[0.41796875, 0.50390625, 0.3359375],
00102     76:[0.203125, 0.40625, 0.0],
00103     77:[0.3359375, 0.40625, 0.26953125],
00104     78:[0.15234375, 0.30859375, 0.0],
00105     79:[0.2578125, 0.30859375, 0.20703125],
00106     80:[0.24609375, 0.99609375, 0.0],
00107     81:[0.74609375, 0.99609375, 0.6640625],
00108     82:[0.1796875, 0.73828125, 0.0],
00109     83:[0.55078125, 0.73828125, 0.4921875],
00110     84:[0.12109375, 0.50390625, 0.0],
00111     85:[0.375, 0.50390625, 0.3359375],
00112     86:[0.09765625, 0.40625, 0.0],
00113     87:[0.3046875, 0.40625, 0.26953125],
00114     88:[0.07421875, 0.30859375, 0.0],
00115     89:[0.23046875, 0.30859375, 0.20703125],
00116     90:[0.0, 0.99609375, 0.0],
00117     91:[0.6640625, 0.99609375, 0.6640625],
00118     92:[0.0, 0.73828125, 0.0],
00119     93:[0.4921875, 0.73828125, 0.4921875],
00120     94:[0.0, 0.50390625, 0.0],
00121     95:[0.3359375, 0.50390625, 0.3359375],
00122     96:[0.0, 0.40625, 0.0],
00123     97:[0.26953125, 0.40625, 0.26953125],
00124     98:[0.0, 0.30859375, 0.0],
00125     99:[0.20703125, 0.30859375, 0.20703125],
00126     100:[0.0, 0.99609375, 0.24609375],
00127     101:[0.6640625, 0.99609375, 0.74609375],
00128     102:[0.0, 0.73828125, 0.1796875],
00129     103:[0.4921875, 0.73828125, 0.55078125],
00130     104:[0.0, 0.50390625, 0.12109375],
00131     105:[0.3359375, 0.50390625, 0.375],
00132     106:[0.0, 0.40625, 0.09765625],
00133     107:[0.26953125, 0.40625, 0.3046875],
00134     108:[0.0, 0.30859375, 0.07421875],
00135     109:[0.20703125, 0.30859375, 0.23046875],
00136     110:[0.0, 0.99609375, 0.49609375],
00137     111:[0.6640625, 0.99609375, 0.828125],
00138     112:[0.0, 0.73828125, 0.3671875],
00139     113:[0.4921875, 0.73828125, 0.61328125],
00140     114:[0.0, 0.50390625, 0.25],
00141     115:[0.3359375, 0.50390625, 0.41796875],
00142     116:[0.0, 0.40625, 0.203125],
00143     117:[0.26953125, 0.40625, 0.3359375],
00144     118:[0.0, 0.30859375, 0.15234375],
00145     119:[0.20703125, 0.30859375, 0.2578125],
00146     120:[0.0, 0.99609375, 0.74609375],
00147     121:[0.6640625, 0.99609375, 0.9140625],
00148     122:[0.0, 0.73828125, 0.55078125],
00149     123:[0.4921875, 0.73828125, 0.67578125],
00150     124:[0.0, 0.50390625, 0.375],
00151     125:[0.3359375, 0.50390625, 0.4609375],
00152     126:[0.0, 0.40625, 0.3046875],
00153     127:[0.26953125, 0.40625, 0.37109375],
00154     128:[0.0, 0.30859375, 0.23046875],
00155     129:[0.20703125, 0.30859375, 0.28515625],
00156     130:[0.0, 0.99609375, 0.99609375],
00157     131:[0.6640625, 0.99609375, 0.99609375],
00158     132:[0.0, 0.73828125, 0.73828125],
00159     133:[0.4921875, 0.73828125, 0.73828125],
00160     134:[0.0, 0.50390625, 0.50390625],
00161     135:[0.3359375, 0.50390625, 0.50390625],
00162     136:[0.0, 0.40625, 0.40625],
00163     137:[0.26953125, 0.40625, 0.40625],
00164     138:[0.0, 0.30859375, 0.30859375],
00165     139:[0.20703125, 0.30859375, 0.30859375],
00166     140:[0.0, 0.74609375, 0.99609375],
00167     141:[0.6640625, 0.9140625, 0.99609375],
00168     142:[0.0, 0.55078125, 0.73828125],
00169     143:[0.4921875, 0.67578125, 0.73828125],
00170     144:[0.0, 0.375, 0.50390625],
00171     145:[0.3359375, 0.4609375, 0.50390625],
00172     146:[0.0, 0.3046875, 0.40625],
00173     147:[0.26953125, 0.37109375, 0.40625],
00174     148:[0.0, 0.23046875, 0.30859375],
00175     149:[0.20703125, 0.28515625, 0.30859375],
00176     150:[0.0, 0.49609375, 0.99609375],
00177     151:[0.6640625, 0.828125, 0.99609375],
00178     152:[0.0, 0.3671875, 0.73828125],
00179     153:[0.4921875, 0.61328125, 0.73828125],
00180     154:[0.0, 0.25, 0.50390625],
00181     155:[0.3359375, 0.41796875, 0.50390625],
00182     156:[0.0, 0.203125, 0.40625],
00183     157:[0.26953125, 0.3359375, 0.40625],
00184     158:[0.0, 0.15234375, 0.30859375],
00185     159:[0.20703125, 0.2578125, 0.30859375],
00186     160:[0.0, 0.24609375, 0.99609375],
00187     161:[0.6640625, 0.74609375, 0.99609375],
00188     162:[0.0, 0.1796875, 0.73828125],
00189     163:[0.4921875, 0.55078125, 0.73828125],
00190     164:[0.0, 0.12109375, 0.50390625],
00191     165:[0.3359375, 0.375, 0.50390625],
00192     166:[0.0, 0.09765625, 0.40625],
00193     167:[0.26953125, 0.3046875, 0.40625],
00194     168:[0.0, 0.07421875, 0.30859375],
00195     169:[0.20703125, 0.23046875, 0.30859375],
00196     170:[0.0, 0.0, 0.99609375],
00197     171:[0.6640625, 0.6640625, 0.99609375],
00198     172:[0.0, 0.0, 0.73828125],
00199     173:[0.4921875, 0.4921875, 0.73828125],
00200     174:[0.0, 0.0, 0.50390625],
00201     175:[0.3359375, 0.3359375, 0.50390625],
00202     176:[0.0, 0.0, 0.40625],
00203     177:[0.26953125, 0.26953125, 0.40625],
00204     178:[0.0, 0.0, 0.30859375],
00205     179:[0.20703125, 0.20703125, 0.30859375],
00206     180:[0.24609375, 0.0, 0.99609375],
00207     181:[0.74609375, 0.6640625, 0.99609375],
00208     182:[0.1796875, 0.0, 0.73828125],
00209     183:[0.55078125, 0.4921875, 0.73828125],
00210     184:[0.12109375, 0.0, 0.50390625],
00211     185:[0.375, 0.3359375, 0.50390625],
00212     186:[0.09765625, 0.0, 0.40625],
00213     187:[0.3046875, 0.26953125, 0.40625],
00214     188:[0.07421875, 0.0, 0.30859375],
00215     189:[0.23046875, 0.20703125, 0.30859375],
00216     190:[0.49609375, 0.0, 0.99609375],
00217     191:[0.828125, 0.6640625, 0.99609375],
00218     192:[0.3671875, 0.0, 0.73828125],
00219     193:[0.61328125, 0.4921875, 0.73828125],
00220     194:[0.25, 0.0, 0.50390625],
00221     195:[0.41796875, 0.3359375, 0.50390625],
00222     196:[0.203125, 0.0, 0.40625],
00223     197:[0.3359375, 0.26953125, 0.40625],
00224     198:[0.15234375, 0.0, 0.30859375],
00225     199:[0.2578125, 0.20703125, 0.30859375],
00226     200:[0.74609375, 0.0, 0.99609375],
00227     201:[0.9140625, 0.6640625, 0.99609375],
00228     202:[0.55078125, 0.0, 0.73828125],
00229     203:[0.67578125, 0.4921875, 0.73828125],
00230     204:[0.375, 0.0, 0.50390625],
00231     205:[0.4609375, 0.3359375, 0.50390625],
00232     206:[0.3046875, 0.0, 0.40625],
00233     207:[0.37109375, 0.26953125, 0.40625],
00234     208:[0.23046875, 0.0, 0.30859375],
00235     209:[0.28515625, 0.20703125, 0.30859375],
00236     210:[0.99609375, 0.0, 0.99609375],
00237     211:[0.99609375, 0.6640625, 0.99609375],
00238     212:[0.73828125, 0.0, 0.73828125],
00239     213:[0.73828125, 0.4921875, 0.73828125],
00240     214:[0.50390625, 0.0, 0.50390625],
00241     215:[0.50390625, 0.3359375, 0.50390625],
00242     216:[0.40625, 0.0, 0.40625],
00243     217:[0.40625, 0.26953125, 0.40625],
00244     218:[0.30859375, 0.0, 0.30859375],
00245     219:[0.30859375, 0.20703125, 0.30859375],
00246     220:[0.99609375, 0.0, 0.74609375],
00247     221:[0.99609375, 0.6640625, 0.9140625],
00248     222:[0.73828125, 0.0, 0.55078125],
00249     223:[0.73828125, 0.4921875, 0.67578125],
00250     224:[0.50390625, 0.0, 0.375],
00251     225:[0.50390625, 0.3359375, 0.4609375],
00252     226:[0.40625, 0.0, 0.3046875],
00253     227:[0.40625, 0.26953125, 0.37109375],
00254     228:[0.30859375, 0.0, 0.23046875],
00255     229:[0.30859375, 0.20703125, 0.28515625],
00256     230:[0.99609375, 0.0, 0.49609375],
00257     231:[0.99609375, 0.6640625, 0.828125],
00258     232:[0.73828125, 0.0, 0.3671875],
00259     233:[0.73828125, 0.4921875, 0.61328125],
00260     234:[0.50390625, 0.0, 0.25],
00261     235:[0.50390625, 0.3359375, 0.41796875],
00262     236:[0.40625, 0.0, 0.203125],
00263     237:[0.40625, 0.26953125, 0.3359375],
00264     238:[0.30859375, 0.0, 0.15234375],
00265     239:[0.30859375, 0.20703125, 0.2578125],
00266     240:[0.99609375, 0.0, 0.24609375],
00267     241:[0.99609375, 0.6640625, 0.74609375],
00268     242:[0.73828125, 0.0, 0.1796875],
00269     243:[0.73828125, 0.4921875, 0.55078125],
00270     244:[0.50390625, 0.0, 0.12109375],
00271     245:[0.50390625, 0.3359375, 0.375],
00272     246:[0.40625, 0.0, 0.09765625],
00273     247:[0.40625, 0.26953125, 0.3046875],
00274     248:[0.30859375, 0.0, 0.07421875],
00275     249:[0.30859375, 0.20703125, 0.23046875],
00276     250:[0.19921875, 0.19921875, 0.19921875],
00277     251:[0.3125, 0.3125, 0.3125],
00278     252:[0.41015625, 0.41015625, 0.41015625],
00279     253:[0.5078125, 0.5078125, 0.5078125],
00280     254:[0.7421875, 0.7421875, 0.7421875],
00281     255:[0.99609375, 0.99609375, 0.99609375],
00282 }

Generated on Wed Nov 23 19:00:09 2011 for FreeCAD by  doxygen 1.6.1