Debian Codegraph @

texmf-dist/metapost/mpcolornames/mpcolornames.mp

raw
1 %%% file mpcolornames.mp
2 %%% Copyright 2009, 2011 Stephan Hennig
3 %
4 % This work may be distributed and/or modified under the conditions of
5 % the LaTeX Project Public License, either version 1.3 of this license
6 % or (at your option) any later version. The latest version of this
7 % license is in http://www.latex-project.org/lppl.txt
8 %
9 if known mpcolornames_fileversion: endinput fi;
10 string mpcolornames_fileversion;
11 mpcolornames_fileversion := "v0.20 (2011/07/14)";
12 message "Loading package mpcolornames.mp " & mpcolornames_fileversion;
13
14 %%% Load color name definitions.
15 input mpcolornames-spec-dvipsnam-def
16 input mpcolornames-spec-svgnam-def
17 input mpcolornames-spec-x11nam-def
18 input mpcolornames-spec-xcolor-sty
19
20 %%% Declare all color variable identifiers.
21 _mpcolornames_spec_dvipsnam_def;
22 _mpcolornames_spec_svgnam_def;
23 _mpcolornames_spec_xelevennam_def;
24 _mpcolornames_spec_xcolor_sty;
25
26
27 %%% This user macro saves all color identifiers clashing
28 %%% in DVIPS and SVG specification and re-declares all
29 %%% DVIPS color names (see macro svgnames).
30 def dvipsnames=
31 save Aquamarine, Black, Blue, BlueViolet, Brown, CadetBlue,
32 CornflowerBlue, Cyan, DarkOrchid, ForestGreen, Fuchsia, Goldenrod,
33 Gray, Green, GreenYellow, Lavender, LimeGreen, Magenta, Maroon,
34 MidnightBlue, NavyBlue, Orange, OrangeRed, Orchid, Plum, Purple, Red,
35 RoyalBlue, Salmon, SeaGreen, SkyBlue, SpringGreen, Tan, Thistle,
36 Turquoise, Violet, VioletRed, White, Yellow, YellowGreen;
37 _mpcolornames_spec_dvipsnam_def;
38 enddef;
39
40 %%% This user macro saves all color identifiers clashing
41 %%% in DVIPS and SVG specification and re-declares all
42 %%% SVG color names (see macro dvipsnames).
43 def svgnames=
44 save Aquamarine, Black, Blue, BlueViolet, Brown, CadetBlue,
45 CornflowerBlue, Cyan, DarkOrchid, ForestGreen, Fuchsia, Goldenrod,
46 Gray, Green, GreenYellow, Lavender, LimeGreen, Magenta, Maroon,
47 MidnightBlue, NavyBlue, Orange, OrangeRed, Orchid, Plum, Purple, Red,
48 RoyalBlue, Salmon, SeaGreen, SkyBlue, SpringGreen, Tan, Thistle,
49 Turquoise, Violet, VioletRed, White, Yellow, YellowGreen;
50 _mpcolornames_spec_svgnam_def;
51 enddef;
52
53 %%% Define color model constants.
54 newinternal nomodel, greyscalemodel, rgbmodel, cmykmodel;
55 nomodel := 1;
56 greyscalemodel := 3;
57 rgbmodel := 5;
58 cmykmodel := 7;
59
60 endinput