Skip to content

Instantly share code, notes, and snippets.

@dohyunkim
Created December 29, 2013 16:11
Show Gist options
  • Select an option

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

Select an option

Save dohyunkim/8171931 to your computer and use it in GitHub Desktop.
test file for transparency. Current (Dec. 2013) luaotfload-colors.lua conflicts with luamplib package on the development.
\input luaotfload.sty
\input luamplib.sty
\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
\font\redtr ={file:lmroman12-bold.otf:color=ff000077} at 40pt
\font\bluetr={file:lmroman12-bold.otf:color=0000ff77} at 40pt
\redtr A\kern-0.5em \bluetr B
\bye
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment