summaryrefslogtreecommitdiff
path: root/metapost
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2020-03-10 15:42:39 +0100
committerContext Git Mirror Bot <phg@phi-gamma.net>2020-03-10 15:42:39 +0100
commit0b0256403b7e111df0ecdb8ca589f20df787dacd (patch)
tree49b02d80ccbb26aa235351ae3dfd2d099635ea72 /metapost
parent631a40d69d7fb4e5beff90039d21da5472dd1020 (diff)
downloadcontext-0b0256403b7e111df0ecdb8ca589f20df787dacd.tar.gz
2020-03-10 14:47:00
Diffstat (limited to 'metapost')
-rw-r--r--metapost/context/base/mpii/mp-tool.mpii2
-rw-r--r--metapost/context/base/mpiv/mp-lmtx.mpxl7
-rw-r--r--metapost/context/base/mpiv/mp-tool.mpiv2
3 files changed, 8 insertions, 3 deletions
diff --git a/metapost/context/base/mpii/mp-tool.mpii b/metapost/context/base/mpii/mp-tool.mpii
index 562139fed..de8e1e8e2 100644
--- a/metapost/context/base/mpii/mp-tool.mpii
+++ b/metapost/context/base/mpii/mp-tool.mpii
@@ -566,7 +566,7 @@ vardef mfun_tool_striped_angle(expr option, p, s_angle, s_gap) text extra =
addto currentpicture also pattern ;
addto currentpicture also shape ;
fi ;
- currentpicture := currentpicture shifted - centrum ;
+ currentpicture := currentpicture shifted centrum ;
endgroup ;
)
enddef;
diff --git a/metapost/context/base/mpiv/mp-lmtx.mpxl b/metapost/context/base/mpiv/mp-lmtx.mpxl
index 2bef6ff88..cd4712ea8 100644
--- a/metapost/context/base/mpiv/mp-lmtx.mpxl
+++ b/metapost/context/base/mpiv/mp-lmtx.mpxl
@@ -2066,7 +2066,7 @@ enddef ;
newinternal svgforcecmyk ; svgforcecmyk := 0 ;
-vardef svgcolor(expr r,g,b) =
+vardef svgcolor(expr r, g, b) =
if svgforcecmyk > 0 :
(1-r,1-g,1-b,0) % simple: no black component, kind of ok for emoji
else :
@@ -2074,6 +2074,10 @@ vardef svgcolor(expr r,g,b) =
fi
enddef ;
+vardef svgcmyk(expr c, m, y, k) =
+ (c,m,y,k)
+enddef ;
+
vardef svggray(expr s) =
s
enddef ;
@@ -2081,6 +2085,7 @@ enddef ;
presetparameters "svg" [
filename = "",
fontname = "",
+ colormap = "",
% unicode = 0,
width = 0,
height = 0,
diff --git a/metapost/context/base/mpiv/mp-tool.mpiv b/metapost/context/base/mpiv/mp-tool.mpiv
index b05adcc8b..3a5dfa81e 100644
--- a/metapost/context/base/mpiv/mp-tool.mpiv
+++ b/metapost/context/base/mpiv/mp-tool.mpiv
@@ -641,7 +641,7 @@ vardef mfun_tool_striped_angle(expr option, p, s_angle, s_gap) text extra =
addto currentpicture also pattern ;
addto currentpicture also shape ;
fi ;
- currentpicture := currentpicture shifted - centrum ;
+ currentpicture := currentpicture shifted centrum ;
endgroup ;
)
enddef;