summaryrefslogtreecommitdiff
path: root/Build/source/utils/asymptote/doc/makepen.asy
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/utils/asymptote/doc/makepen.asy')
-rw-r--r--Build/source/utils/asymptote/doc/makepen.asy9
1 files changed, 9 insertions, 0 deletions
diff --git a/Build/source/utils/asymptote/doc/makepen.asy b/Build/source/utils/asymptote/doc/makepen.asy
new file mode 100644
index 00000000000..7c7868a0901
--- /dev/null
+++ b/Build/source/utils/asymptote/doc/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);