Created
September 2, 2026 00:55
-
-
Save dohyunkim/515870a1f987b820b19e376c4678f337 to your computer and use it in GitHub Desktop.
matrix transformation of shading in luamplib
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| \documentclass{article} | |
| \usepackage{luamplib} | |
| \pagestyle{empty} | |
| \begin{document} | |
| \mpfig | |
| filldraw fullcircle scaled 100 shifted (100,50) | |
| withshadingmethod "linear" | |
| withshadingcolors (red, blue) | |
| withshadingmatrix "shifted (-100,-50) rotated 45 shifted (100,50)" | |
| ; | |
| \endmpfig | |
| \end{document} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment