Created
February 14, 2017 07:23
-
-
Save dohyunkim/01362adc712d19aad4559a7149f5808e to your computer and use it in GitHub Desktop.
color transparency test
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
| \input luaotfload.sty | |
| \input luamplib.sty | |
| \font\redtr="[lmroman12-bold.otf]:color=ff00007F" at 40pt | |
| \font\bluetr="[lmroman12-bold.otf]:color=0000ff7f" at 40pt | |
| \leavevmode\hbox{\redtr A\kern-0.5em \bluetr B} | |
| \mplibsetformat{metafun} | |
| \mplibcode | |
| beginfig(0); | |
| path p; p:= unitcircle scaled 2cm; | |
| fill p withcolor transparent("normal",0.5,red); | |
| fill p xshifted 1cm withcolor transparent("normal",0.5,blue) ; | |
| endfig; | |
| \endmplibcode | |
| \bye |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment