summaryrefslogtreecommitdiff
path: root/metapost
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2014-05-16 20:08:00 +0200
committerHans Hagen <pragma@wxs.nl>2014-05-16 20:08:00 +0200
commitdcafc5c897cc956f197a54f516472954036af7f9 (patch)
treec54e512e741b947d8f3a13e91b76402484c55ef1 /metapost
parentc3675f9b2c0dd9c6ae6b911593f5331dba5992a5 (diff)
downloadcontext-dcafc5c897cc956f197a54f516472954036af7f9.tar.gz
beta 2014.05.16 20:08
Diffstat (limited to 'metapost')
-rw-r--r--metapost/context/base/mp-tool.mpiv9
1 files changed, 9 insertions, 0 deletions
diff --git a/metapost/context/base/mp-tool.mpiv b/metapost/context/base/mp-tool.mpiv
index 4ca2ea0f9..7845467a4 100644
--- a/metapost/context/base/mp-tool.mpiv
+++ b/metapost/context/base/mp-tool.mpiv
@@ -628,6 +628,15 @@ ultriangle := origin -- (0,+.5) -- (-.5,0) -- cycle ;
lltriangle := origin -- (-.5,0) -- (0,-.5) -- cycle ;
lrtriangle := origin -- (0,-.5) -- (+.5,0) -- cycle ;
+path triangle, uptriangle, downtriangle, lefttriangle, righttriangle ;
+
+triangle := (1,0) -- (1,0) rotated 120 -- (1,0) rotated -120 -- cycle ;
+
+uptriangle := triangle rotated 90 ;
+downtriangle := triangle rotated -90 ;
+lefttriangle := triangle rotated 180 ;
+righttriangle := triangle ;
+
path unitdiamond, fulldiamond ;
unitdiamond := (.5,0) -- (1,.5) -- (.5,1) -- (0,.5) -- cycle ;