diff options
Diffstat (limited to 'metapost')
-rw-r--r-- | metapost/context/base/mpii/mp-tool.mpii | 2 | ||||
-rw-r--r-- | metapost/context/base/mpiv/mp-lmtx.mpxl | 7 | ||||
-rw-r--r-- | metapost/context/base/mpiv/mp-tool.mpiv | 2 |
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; |