diff options
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.tex | 22 |
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} |