Skip to content

Instantly share code, notes, and snippets.

@dohyunkim
Created February 14, 2017 07:23
Show Gist options
  • Select an option

  • Save dohyunkim/01362adc712d19aad4559a7149f5808e to your computer and use it in GitHub Desktop.

Select an option

Save dohyunkim/01362adc712d19aad4559a7149f5808e to your computer and use it in GitHub Desktop.
color transparency test
\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