ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Christian Prim <christian.prim@gmx.ch>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: ConTeXt-defined colours broken in TikZ in MkIV with latest betas
Date: Thu, 16 Apr 2015 21:34:45 +0200	[thread overview]
Message-ID: <CA+9XOxrGQSd-O4A2c9Yv+NjJ=1524ph05h4GFUM2D0DUWFJfuA@mail.gmail.com> (raw)
In-Reply-To: <CA+9XOxo9nkZDfM5B+aEbAXLXGAcu6A0F6J1n0wKnb6178oKeCQ@mail.gmail.com>


[-- Attachment #1.1: Type: text/plain, Size: 2743 bytes --]

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?

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.prim@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 <pragma@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 | 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 #1.2: Type: text/html, Size: 4644 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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	other threads:[~2015-04-16 19:34 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-13 17:45 Mojca Miklavec
2015-04-13 18:13 ` Christian Prim
2015-04-13 20:51 ` Hans Hagen
2015-04-14  8:29   ` Christian Prim
2015-04-14  8:42     ` Hans Hagen
2015-04-14  9:54       ` Christian Prim
2015-04-16 19:34         ` Christian Prim [this message]
2015-04-16 19:58           ` Hans Hagen
2015-04-16 21:29             ` Christian Prim
2015-04-16 23:27               ` Hans Hagen
2015-04-24 13:05                 ` Christian Prim
2015-04-25 21:18                   ` Hans Hagen
2015-05-14  7:56                     ` Christian Prim

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CA+9XOxrGQSd-O4A2c9Yv+NjJ=1524ph05h4GFUM2D0DUWFJfuA@mail.gmail.com' \
    --to=christian.prim@gmx.ch \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).