summaryrefslogtreecommitdiff
path: root/Master/texmf/doc/asymptote/examples/makepen.asy
blob: 7c7868a09013ebaa941c364e1039c4add81fb2af (plain)
1
2
3
4
5
6
7
8
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);