summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/metapost
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2016-05-16 18:18:10 +0000
committerKarl Berry <karl@freefriends.org>2016-05-16 18:18:10 +0000
commit815e54f6a349937be9afb419f12989c0b9652ab3 (patch)
tree1216f1f111c36e42860b50d3297700956b9cc40f /Master/texmf-dist/metapost
parent0f17ceebbcc6309a40823416a4a99e9ddf02dc65 (diff)
context update + remove nonfree *.icc color profiles
git-svn-id: svn://tug.org/texlive/trunk@41191 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/metapost')
-rw-r--r--Master/texmf-dist/metapost/context/base/mpiv/mp-page.mpiv1
-rw-r--r--Master/texmf-dist/metapost/context/base/mpiv/mp-tool.mpiv10
2 files changed, 10 insertions, 1 deletions
diff --git a/Master/texmf-dist/metapost/context/base/mpiv/mp-page.mpiv b/Master/texmf-dist/metapost/context/base/mpiv/mp-page.mpiv
index 07d264f6012..2e4a2b43785 100644
--- a/Master/texmf-dist/metapost/context/base/mpiv/mp-page.mpiv
+++ b/Master/texmf-dist/metapost/context/base/mpiv/mp-page.mpiv
@@ -665,6 +665,7 @@ enddef ;
% for the moment we put these here:
+string RuleDirection ; RuleDirection := "" ;
string RuleOption ; RuleOption := "" ;
numeric RuleWidth ; RuleWidth := 0 ;
numeric RuleHeight ; RuleHeight := 0 ;
diff --git a/Master/texmf-dist/metapost/context/base/mpiv/mp-tool.mpiv b/Master/texmf-dist/metapost/context/base/mpiv/mp-tool.mpiv
index 7696eb372df..f7959e67312 100644
--- a/Master/texmf-dist/metapost/context/base/mpiv/mp-tool.mpiv
+++ b/Master/texmf-dist/metapost/context/base/mpiv/mp-tool.mpiv
@@ -822,13 +822,21 @@ def colortype(expr c) =
enddef ;
vardef whitecolor(expr c) =
- if cmykcolor c : (0,0,0,0) elseif rgbcolor c : (1,1,1) else : 1 fi
+ if cmykcolor c : (0,0,0,0) elseif rgbcolor c : (1,1,1) else : 1 fi
enddef ;
vardef blackcolor expr c =
if cmykcolor c : (0,0,0,1) elseif rgbcolor c : (0,0,0) else : 0 fi
enddef ;
+vardef complementary expr c = (
+ if cmykcolor c : (1,1,1,1) -
+ elseif rgbcolor c : (1,1,1) -
+ elseif pair c : (1,1) -
+ elseif numeric c : 1 -
+ fi c
+) enddef ;
+
%D Well, this is the dangerous and naive version:
def drawfill text t =