From 385e2ceb547e485347aea365c53cddfe0e8c2914 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Thu, 2 Jan 2014 23:51:49 +0000 Subject: luamplib (2jan14) git-svn-id: svn://tug.org/texlive/trunk@32551 c570f23f-e606-0410-a88d-b1316a301751 --- .../doc/luatex/luamplib/test-luamplib-latex.tex | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'Master/texmf-dist/doc/luatex/luamplib/test-luamplib-latex.tex') 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} -- cgit v1.2.3