summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/metapost/featpost/example/jdbug.mp
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/metapost/featpost/example/jdbug.mp')
-rw-r--r--Master/texmf-dist/doc/metapost/featpost/example/jdbug.mp26
1 files changed, 26 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/metapost/featpost/example/jdbug.mp b/Master/texmf-dist/doc/metapost/featpost/example/jdbug.mp
new file mode 100644
index 00000000000..033fe0248ed
--- /dev/null
+++ b/Master/texmf-dist/doc/metapost/featpost/example/jdbug.mp
@@ -0,0 +1,26 @@
+% jdbug.mp
+% L. Nobre G.
+% 2012
+
+prologues := 1;
+
+beginfig(1);
+ numeric N, i, u, c, s;
+ pen thepen;
+ picture lastpic;
+ u = 5mm;
+ thepen = pencircle scaled 0.2u;
+ N = 5;
+ s = 180/N;
+ c = u*cosd(s);
+ draw for i=0 step 2s until 360-2s:
+ (u*dir(i))--(c*dir(i+s))--
+ endfor cycle withpen thepen;
+ lastpic = currentpicture;
+endfig;
+
+beginfig(2);
+ draw lastpic rotated s;
+endfig;
+
+end. \ No newline at end of file