Thanks Hans for the fix!

I have noticed, that spotcolors can be used in tikz, but they are darker. Is that wanted or a bug?

MWE:

\usemodule[tikz]
\starttext
\definecolor[gruen][c=0.52,y=0.86]
\definespotcolor[mycol][gruen][p=1]
\definespotcolor[mycol_h][gruen][p=0.5]
\definespotcolor[mycol_q][gruen][p=0.25]
\startcolor[mycol]
{\bfa Test Test Test Test Test}
\stopcolor

\starttikzpicture
\fill[mycol] (0, 0) rectangle (2,4);
\fill[mycol_h] (2, 0) rectangle ++(2,4);
\fill[mycol_q] (4, 0) rectangle ++(2,4);
\stoptikzpicture
\stoptext


I expect the first rectangle to have the same color as the (wanted) color of the text. But the color of the text is closer to the color of the rectangle in the middle (50%). 

Christian

2015-04-13 22:51 GMT+02:00 Hans Hagen <pragma@wxs.nl>:
On 4/13/2015 7:45 PM, Mojca Miklavec wrote:
Hi,

The following example works in MkII and it works in TeX Live 2014, but
it fails with the latest beta (it draws a black rectangle instead of
using the defined colour):

\usemodule[tikz]
\starttext
\definecolor[mycol][r=0.9,g=0.8,b=0.8]
\starttikzpicture
\fill[mycol] (0, 0) rectangle (2,4);
\stoptikzpicture
\stoptext

It would be really nice to fix this in time for TeX Live 2015.

Hm, i'm a bit puzzled why some suggested patched are nto in the distribution. Anyway, attached a more modern variant

you need a beta that i just uploaded because i found out that when tijz predefines some mixed colors it assumes rgb color space

your example then runs ok here

Hans

-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
    tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                             | www.pragma-pod.nl
-----------------------------------------------------------------

___________________________________________________________________________________
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
___________________________________________________________________________________