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
> 

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to