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/lgc2/4-1-16.mp |
Initial commit
Diffstat (limited to 'info/examples/lgc2/4-1-16.mp')
-rw-r--r-- | info/examples/lgc2/4-1-16.mp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/info/examples/lgc2/4-1-16.mp b/info/examples/lgc2/4-1-16.mp new file mode 100644 index 0000000000..da31f4a2a8 --- /dev/null +++ b/info/examples/lgc2/4-1-16.mp @@ -0,0 +1,21 @@ +% --- start of displayed preamble in the book --- + +% --- end of displayed preamble in the book --- +% graphic converted to gray in book using 'color2gray' +defaultfont:="ptmr8r"; +warningcheck:=0; +beginfig(1) +numeric u; +u=5mm; +path p[]; +p1=fullcircle scaled 5u; +p2=unitsquare scaled 3u shifted (0,5u); +draw p2; +draw p1 withcolor red; +draw interpath(.1,p1,p2) withcolor .25[red,green]; +draw interpath(.25,p1,p2) withcolor .5[red,green]; +draw interpath(.5,p1,p2) withcolor green; +draw interpath(.75,p1,p2) withcolor .5[green,black]; +draw interpath(.9,p1,p2) withcolor .7[green,black]; +endfig; +end; |