Am 03.01.2026 um 16:32 schrieb Jeong Dal via ntg-context:
Dear all,
First, Happy New Year!
I tried to draw a small figure using the following MetaFun code.
The problem is the last line.
If I run \processMPbuffer[sampleGraph] then it works well and draw the
figure.
But, if I add another buffer name like
\processMPbuffer[sampleGraph, edgeLabel]
Or
\processMPbuffer[sampleGraph, multiGraph]
Then an error occurred. In the log file, I found that
metafun > log > error: Not implemented: (pair)*(color)
metafun > log >
metapost > trace > <error> (0.30901699437494745,0.95105651629515353)
metapost > trace > <to be read again> ;
metapost > trace > <for(1)> z [ (EXPR 0) ] = dir ( 360 * (EXPR
0) / (5) + (0) ) * ((0,0,0)) ; ENDFOR
As you see here, 'mySize = (0,0,0)' not ‘2cm'.
I don’t see what is the problem.
Thank you for your reading.
Best wishes,
Dalyoung
[...]
\startbuffer[sampleGraph]
setPoints(5,\MPvar{mySize},0);
setPoints(5,\MPrawvar{sampleGraph}{mySize},0);
Wolfgang
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : [email protected] /
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___________________________________________________________________________________