From 16abdae33ca686c44db433dadc9a70940766e37f Mon Sep 17 00:00:00 2001 From: Christophe Poulain Date: Sun, 19 Feb 2017 22:33:50 +0100 Subject: [PATCH] =?utf8?q?Ajout=20d'un=20r=C3=A9pertoire=20d'exemples?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- exemples/Exemple1.mp | 90 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 90 insertions(+) create mode 100644 exemples/Exemple1.mp diff --git a/exemples/Exemple1.mp b/exemples/Exemple1.mp new file mode 100644 index 0000000..d907518 --- /dev/null +++ b/exemples/Exemple1.mp @@ -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 + -- 2.20.1