Ajout d'un répertoire d'exemples
authorChristophe Poulain <cp@DebianFixe.home>
Sun, 19 Feb 2017 21:33:50 +0000 (22:33 +0100)
committerChristophe Poulain <cp@DebianFixe.home>
Sun, 19 Feb 2017 21:33:50 +0000 (22:33 +0100)
exemples/Exemple1.mp [new file with mode: 0644]

diff --git a/exemples/Exemple1.mp b/exemples/Exemple1.mp
new file mode 100644 (file)
index 0000000..d907518
--- /dev/null
@@ -0,0 +1,90 @@
+input mp-scratch
+
+beginfig(1);
+  draw Drapeau;
+  draw Effacer;
+  draw PoserStylo;
+  draw Tournerg(90);
+  draw Avancer(20);
+  draw Tournerd(180);
+  draw Avancer(20);
+  draw Tournerg(90);
+  draw Avancer(10);
+  draw PoserStylo;
+  draw Tournerg(90);
+  draw Avancer(50);
+endfig;
+
+beginfig(2);
+  draw Drapeau;
+  draw PoserStylo;
+  draw Avancer(90);
+  draw Tournerg(120);
+  draw Avancer(30);
+  draw Tournerg(60);
+  draw Avancer(60);
+  draw Tournerd(120);
+  draw Avancer(60);
+  draw Tournerg(60);
+  draw Avancer(30);
+endfig;
+
+beginfig(3);
+  draw Drapeau;
+  draw Tournerg(60);
+  draw PoserStylo;
+  draw Avancer(30);
+  draw Tournerd(120);
+  draw Avancer(60);
+  draw Tournerg(120);
+  draw Avancer(60);
+  draw Tournerd(120);
+  draw Avancer(30);
+  draw Tournerd(120);
+  draw Avancer(90);
+endfig;
+
+beginfig(4);
+  draw Drapeau;
+  draw PoserStylo;
+  draw Avancer(90);
+  draw Tournerg(120);
+  draw Avancer(30);
+  draw Tournerg(120);
+  draw Avancer(60);
+  draw Tournerd(120);
+  draw Avancer(60);
+  draw Tournerg(120);
+  draw Avancer(30);
+endfig;
+
+beginfig(5);
+  draw Drapeau;
+  draw Tournerg(60);
+  draw PoserStylo;
+  draw Avancer(30);
+  draw Tournerd(120);
+  draw Avancer(60);
+  draw Tournerg(120);
+  draw Avancer(60);
+  draw Tournerd(120);
+  draw Avancer(30);
+  draw Tournerd(60);
+  draw Avancer(90);
+endfig;
+
+beginfig(6);
+  draw Drapeau;
+  draw Effacer;
+  draw PoserStylo;
+  draw Avancer(20);
+  draw Avancer("\opSimple{$-$20}");
+  draw Tournerd(90);
+  draw Avancer(10);
+  draw PoserStylo;
+  draw Tournerg(90);
+  draw Avancer(50);
+endfig;
+
+end
+  

Licence Creative Commons Les fichiers de Syracuse sont mis à disposition (sauf mention contraire) selon les termes de la
Licence Creative Commons Attribution - Pas d’Utilisation Commerciale - Partage dans les Mêmes Conditions 4.0 International.