After some struggling with text colouring in metafun I finally encountered on
the wiki:
Another difference is the way text is handled in mkiv. In particular, color
(withcolor) is not applied to metapost text. For example,
draw thelabel(decimal i, (i, 0) scaled 1cm) withcolor red ;
currently
I'm trying to play with colors in textext inclusions:
\setupcolors[state=start]
\setupMPpage[offset=2mm]
\startuseMPgraphic{test}
label(textext(\color[green]{XYZ}), (0,0));
\stopuseMPgraphic
\starttext
\forceMPTEXgraphictrue
\startMPpage
\includeMPgraphic{test}
\stopMPpage
Hans van der Meer wrote:
I'm trying to play with colors in textext inclusions:
\setupcolors[state=start]
\setupMPpage[offset=2mm]
\startuseMPgraphic{test}
label(textext(\color[green]{XYZ}), (0,0));
\stopuseMPgraphic
\starttext
\forceMPTEXgraphictrue
\startMPpage
\includeMPgraphic{test}
I'm sorry, I ran it in a few variations, but neither does work here:
\setupcolors[state=start]
\startMPenvironment % both with and without: [global]
\setupcolors[state=start]
\stopMPenvironment
\setupMPpage[offset=2mm]
\startuseMPgraphic{test}