Taco Hoekwater wrote:
Jin-Hwan Cho wrote:
In the MetaFun manual (metafun-p.pdf) p.117, you may see an example using the color ".5\MPcolor{cmyyellow}". But I could not generate the color. Could anyone check the attached sample?
Both were present in the example. I've created a collector item for this. (which means that I believe it really is a bug :-))
I tried \definecolor[cmyyellow][y=1] \definecolor[cmycyan][c=1] and then .5[\MPcolor{cmycyan},\MPcolor{cmyyellow}] Without the cmyk=no option, color mixing really works wrong (I get yellow instead of green, perhaps c=.5,y=.5 would be something to expect), but with it, my Acrobat states that the colors are not proper cyan and yellow any more (but the exact numbers probably depend on settings for cmky->rgb->cmyk conversion). Well, the best conversion ever seen was the one by MS Word (when I tried to include a cmyk pdf image into a document): blue became green, red resulted in blue and yellow in pink ;) About the problem of "white cmyk color" (\definecolor[colorname][c=0,m=0,y=0,k=0]): I guess that the problem could lie in the \doifelse loop(s) of \dododefinecolor in colo-ini.tex. The loop simply checks if any color component is different from zero and chooses the first suitable color space. CMYK white is probably the only exception to this rule. What about deciding about the color system on the basis of settings used (r=0 => rgb or c=0 => cmy(k) or ...), before executing this (modified) loop? Or perhaps having some predefined "zero" colors (cmykwhite for example)? An usual rgb white can be used, but I'm not sure if it can be properly mixed with cmyk colors then. Mojca