summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/luatex/luamplib/test-luamplib-latex.tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2014-01-02 23:51:49 +0000
committerKarl Berry <karl@freefriends.org>2014-01-02 23:51:49 +0000
commit385e2ceb547e485347aea365c53cddfe0e8c2914 (patch)
tree819678825a767b6764cd7859e86b9348f7246885 /Master/texmf-dist/doc/luatex/luamplib/test-luamplib-latex.tex
parent037aae555214628582769833f92ee99211fb6972 (diff)
luamplib (2jan14)
git-svn-id: svn://tug.org/texlive/trunk@32551 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/luatex/luamplib/test-luamplib-latex.tex')
-rw-r--r--Master/texmf-dist/doc/luatex/luamplib/test-luamplib-latex.tex22
1 files changed, 22 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/luatex/luamplib/test-luamplib-latex.tex b/Master/texmf-dist/doc/luatex/luamplib/test-luamplib-latex.tex
index f68d247c3ce..9df70dd7869 100644
--- a/Master/texmf-dist/doc/luatex/luamplib/test-luamplib-latex.tex
+++ b/Master/texmf-dist/doc/luatex/luamplib/test-luamplib-latex.tex
@@ -22,6 +22,7 @@ endfig;
B\par
A%
\begin{mplibcode}
+verbatimtex \lower.2em etex
beginfig(0);
draw origin--(1cm,0) withcolor red;
draw btex g etex withcolor blue;
@@ -52,4 +53,25 @@ endfor;
endfig;
\end{mplibcode}%
B\par
+\mplibsetformat{metafun}%
+\begin{mplibcode}
+verbatimtex \moveright 0.4\hsize etex
+beginfig(0);
+path p; p:= fullcircle scaled 2cm yshifted .5cm;
+fill p withcolor transparent("normal", 0.5, red);
+fill p rotated 120 withcolor transparent("normal", 0.5, green);
+fill p rotated 240 withcolor transparent("normal", 0.5, blue);
+endfig;
+verbatimtex \leavevmode etex
+picture p; p := btex MetaPost etex scaled 2;
+beginfig(1);
+linear_shade(bbox p,0,blue,.7white);
+draw p withcolor white;
+endfig;
+verbatimtex \kern10pt etex
+beginfig(2);
+circular_shade(bbox p,0,blue,.7white);
+draw p withcolor white;
+endfig;
+\end{mplibcode}%
\end{document}