summaryrefslogtreecommitdiff
path: root/Master/texmf/doc/asymptote/examples/makepen.asy
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf/doc/asymptote/examples/makepen.asy')
-rw-r--r--Master/texmf/doc/asymptote/examples/makepen.asy9
1 files changed, 9 insertions, 0 deletions
diff --git a/Master/texmf/doc/asymptote/examples/makepen.asy b/Master/texmf/doc/asymptote/examples/makepen.asy
new file mode 100644
index 00000000000..7c7868a0901
--- /dev/null
+++ b/Master/texmf/doc/asymptote/examples/makepen.asy
@@ -0,0 +1,9 @@
+size(200);
+pen convex=makepen(scale(10)*polygon(8))+grey;
+draw((1,0.4),convex);
+draw((0,0)---(1,1)..(2,0)--cycle,convex);
+
+pen nonconvex=scale(10)*
+ makepen((0,0)--(0.25,-1)--(0.5,0.25)--(1,0)--(0.5,1.25)--cycle)+red;
+draw((0.5,-1.5),nonconvex);
+draw((0,-1.5)..(1,-0.5)..(2,-1.5),nonconvex);