11 Apr
2016
11 Apr
'16
1:10 p.m.
Dear Hans van der Meer, Thank you for your sample code. I learned how to pass the value of the variables. BTW, if I change “orange” to “red” or “green”, it is working fine. I think that “orange” is not the predefined color. There is no color “orange” in the MetaFun manual either. Thank you. Best regards, Dalyoung
\starttext \startuseMPgraphic{myname1}{color} pickup pencircle scaled 1mm; draw unitsquare scaled 1cm withcolor \MPvar{color}; \stopuseMPgraphic
\startuseMPgraphic{myname2}{color=red} pickup pencircle scaled 1mm; draw unitsquare scaled 1cm withcolor \MPvar{color}; \stopuseMPgraphic
\useMPgraphic{myname1}{color=blue} \useMPgraphic{myname2}{color=orange}
\stoptext
Hans van der Meer