27 Jan
2009
27 Jan
'09
5:32 p.m.
Hi Hans, The attached example works fine with mkii (text and gfx both use RGB colors). Using mkiv reduces the colorspace of the graphic to GRAY. Sadly PDFX/-4 doesn't allow to mix color profiles of colorspace RGB with GRAY ones. So I'm forced to always use the RGB colorspace... Best wishes, Peter \setupcolors[state=start] \definecolor[rgbgray] [r=.5,g=.5,b=.5] \startuniqueMPgraphic{foo}{size} fill unitsquare xyscaled(\MPvar{size},\MPvar{size}) withcolor \MPcolor{rgbgray}; \stopuniqueMPgraphic \starttext \uniqueMPgraphic{foo}{size=5cm} \color[rgbgray] Gray text. \stoptext