Hi Hans

sorry to ask again. But the different color handling between
context-version before 2015.04.14 00:54 and
context-version 2015.04.14 00:54 is remarkable and annoying.

See attached pdf-documents. Both have exactly the same source:

\usemodule[tikz]
\setupbodyfont[40pt]
\starttext
\definecolor[mycola][c=0.23,m=0.58,y=0.88,k=0.45]
\definecolor[mycolb][c=0.115,m=0.29,y=0.44,k=0.225]
\definecolor[mycolc][c=0.055,m=0.145,y=0.22,k=0.1125]

\starttikzpicture
\node[fill=mycola,rectangle, minimum height=4cm,minimum width=2cm,anchor=south west] {\startcolor[mycola]T\stopcolor}; \node[fill=mycolb,rectangle, minimum height=4cm,minimum width=2cm,anchor=south west] at (2,0) {\startcolor[mycolb]T\stopcolor}; \node[fill=mycolc,rectangle, minimum height=4cm,minimum width=2cm,anchor=south west] at (4,0) {\startcolor[mycolc]T\stopcolor};
\stoptikzpicture
\stoptext

I write in each box the letter T with exactly the same color as the underlying box. Textcolor is set using context, fill color of the box is set using tikz.

old.pdf shows the correct color handling. The letter T has exactly the same color as the box and therefore disappears.

With newest beta (new.pdf) the letter T is visible.

Must I now stay with an old beta or can this "bug" be fixed? Perhaps it's a bug in tikz...

Thanks
Christian


Am Don, 16. Apr, 2015 um 9:58 schrieb Hans Hagen <pra...@wxs.nl>:
On 4/16/2015 9:34 PM, Christian Prim wrote:
> Hi Hans
>
> is it correct, that with the new beta one can just use rgb-colors using > tikz or is there a bug preventing the usage of cmyk-colors as it used to
> work before?

cmyk should work ok but afaik tikz assumes rgb in some cases so that
prohibits that we can do automatic conversion tp other color spaces at
he context end

> Thanks!
>
> Christian
>
> PS.: See mail below for MWE showing false cmyk colors in tikz.
>
> 2015-04-14 11:54 GMT+02:00 Christian Prim <christian.p...@gmx.ch
> <mailto:christian.p...@gmx.ch>>:
>
> Thanks Hans for clarification. But even with simple context color
>     models (that worked before) I get other colors.
>
>     MWE:
>
>     \usemodule[tikz]
>     \setupbodyfont[40pt]
>     \starttext
>     \definecolor[mycol][c=0.23,m=0.58,y=0.88,k=0.45]
>     \definecolor[mycol_h][c=0.115,m=0.29,y=0.44,k=0.225]
>     \definecolor[mycol_q][c=0.055,m=0.145,y=0.22,k=0.1125]
>     \startcolor[mycol]
>     {\bfa •••••••• 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'm not so familiar with metafun, so I couldn't do the rectangle
> with metafun (the different colors between context/metafun and tikz > would certainly be better visible so). But the bullet shows, that > the text color isn't the same as the tikz-figure. But they should as > they are identical. Something must have changed in color handling.
>
>     Christian
>
>     2015-04-14 10:42 GMT+02:00 Hans Hagen <pra...@wxs.nl
>     <mailto:pra...@wxs.nl>>:
>
>         On 4/14/2015 10:29 AM, Christian Prim wrote:
>
>             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?
>
>
>         they will map onto cmyk or rgb depending on definitions ...
>         don't expect advanced context color models to work with tikz
>         (but they do work with metafun)
>
>
>         Hans
>
> ------------------------------__------------------------------__----- > Hans Hagen | PRAGMA ADE > Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>              tel: 038 477 53 69 | voip: 087 875 68 74
>         <tel:087%20875%2068%2074> | www.pragma-ade.com
>         <http://www.pragma-ade.com>
>                                                       |
>         www.pragma-pod.nl <http://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 <mailto:ntg-context@ntg.nl> /
>         http://www.ntg.nl/mailman/__listinfo/ntg-context
>         <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/
>         <http://foundry.supelec.fr/projects/contextrev/>
>         wiki     : http://contextgarden.net
> _______________________________________________________________________________________
>
>
>
>
>
> ___________________________________________________________________________________ > 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
> ___________________________________________________________________________________
>


--

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

Attachment: old.pdf
Description: Adobe PDF document

Attachment: new.pdf
Description: Adobe PDF document

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

Reply via email to