diff options
author | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
commit | e0c6872cf40896c7be36b11dcc744620f10adf1d (patch) | |
tree | 60335e10d2f4354b0674ec22d7b53f0f8abee672 /info/examples/ltt/simple2.mp |
Initial commit
Diffstat (limited to 'info/examples/ltt/simple2.mp')
-rw-r--r-- | info/examples/ltt/simple2.mp | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/info/examples/ltt/simple2.mp b/info/examples/ltt/simple2.mp new file mode 100644 index 0000000000..2758e627eb --- /dev/null +++ b/info/examples/ltt/simple2.mp @@ -0,0 +1,24 @@ +u := 5mm;
+defaultfont := "pplr";
+defaultscale := 12pt/fontsize defaultfont;
+
+beginfig(1);
+path p;
+p := unitsquare xscaled 8u yscaled 3u;
+
+fill p shifted(11u,6u) withcolor 0.8white;
+fill p shifted(0,6u) withcolor 0.8white;
+draw p shifted(0,u) withcolor 0.8white;
+
+drawarrow (4u,6u)--(4u,4u);
+drawarrow (4u,1u)--(4u,0);
+drawarrow (11u,7.5u){-1,.5}..{-1,-.5}(8u,7.5u);
+
+label("unten",(4u,2.5u));
+label("oben",(4u,7.5u));
+
+defaultfont:="pcrr";
+label("rechts",(15u,7.5u));
+
+endfig;
+end;
|