summaryrefslogtreecommitdiff
path: root/metapost
diff options
context:
space:
mode:
authorMarius <mariausol@gmail.com>2014-01-30 01:00:16 +0200
committerMarius <mariausol@gmail.com>2014-01-30 01:00:16 +0200
commitac074df1b1f183f54be4086757cb2b85417fc903 (patch)
treeeb41098c749d33960a8e8bacb2c58dfe0d973d36 /metapost
parentc32e3ec991b2c70bb8ccf2db6f2c409dbe745de5 (diff)
downloadcontext-ac074df1b1f183f54be4086757cb2b85417fc903.tar.gz
beta 2014.01.29 23:48
Diffstat (limited to 'metapost')
-rw-r--r--metapost/context/base/mp-base.mpii2
-rw-r--r--metapost/context/base/mp-tool.mpii4
2 files changed, 4 insertions, 2 deletions
diff --git a/metapost/context/base/mp-base.mpii b/metapost/context/base/mp-base.mpii
index addaa86db..7af4bc436 100644
--- a/metapost/context/base/mp-base.mpii
+++ b/metapost/context/base/mp-base.mpii
@@ -110,7 +110,7 @@ transform identity;
for z=origin,right,up: z transformed identity = z; endfor
% color constants
-color black, white, red, green, blue, background;
+color black, white, red, green, blue, cyan, magenta, yellow, background;
black = (0,0,0);
white = (1,1,1);
red = (1,0,0);
diff --git a/metapost/context/base/mp-tool.mpii b/metapost/context/base/mp-tool.mpii
index 492dec44c..62bd122f5 100644
--- a/metapost/context/base/mp-tool.mpii
+++ b/metapost/context/base/mp-tool.mpii
@@ -28,6 +28,8 @@ let @## = @# ;
if not known mpversion : string mpversion ; mpversion := "0.641" ; fi ;
+newinternal metapostversion ; metapostversion := scantokens(mpversion) ;
+
% vardef mpversiongt(expr s) =
% scantokens (mpversion & " > " & if numeric s : decimal s else : s fi)
% enddef ;
@@ -1128,7 +1130,7 @@ enddef ;
% save arrowpath ; path arrowpath ; arrowpath := p ;
% _drawarrowpath_
% enddef ;
-%
+%
% def _drawarrowpath_ text t =
% drawarrow arrowpath _pth_opt_ t ;
% endgroup ;