ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Michael Murphy <michael.murphy@uni-ulm.de>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: bug: colors in TikZ/ConTeXt MKIV
Date: Wed, 01 Dec 2010 13:36:29 +0100	[thread overview]
Message-ID: <1291206989.2623.3.camel@silver-fox> (raw)
In-Reply-To: <4CF106B7.8060501@wxs.nl>

On Sat, 2010-11-27 at 14:25 +0100, Hans Hagen wrote:
> On 27-11-2010 2:16, Mojca Miklavec wrote:
> > On Sat, Nov 27, 2010 at 13:29, Hans Hagen wrote:
> >>
> >> \starttikzpicture
> >>    \node[circle,ball color=darkred] (a) at (0,0,0) {$p_x$};
> >> \stoptikzpicture
> >
> > I made a workaround in that way, but it's still a bug ...
> 
> I have no clue what the ! does apart from defining a color red at 10% 
> but I do know that context ignores it.
> 
> Hans

The '!' is actually pretty neat, since it allows you to blend colors. By
default, tikz blends colors with white, so

red!10

means mix 10% red with 90% white. This has the advantage that I can take
any color, say

\definecolor[mycolor][r=0.42,g=1.,b=0.2]

and lighten it 50% by just using

mycolor!50

I can also blend two colors together, using

colorA!50!colorB

I'm also pretty sure that context didn't always ignore the exclamation
mark. Is there a way to reverse this behaviour?

PS I've tried using spot colors in context, but that doesn't seem to
work:

\definespotcolor[mycolor][red][p=.1]

-- 
Michael Murphy MPhys <michael.murphy@uni-ulm.de>

Institute für Quanteninformationsverarbeitung
Room N25/4409
Universität Ulm
Albert-Einstein-Allee 11
89081 Ulm Deutschland
tel +49 731 50 22824
fax +49 731 50 22839

www.uni-ulm.de/nawi/nawi-qiv.html

___________________________________________________________________________________
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:[~2010-12-01 12:36 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-26 22:24 Mojca Miklavec
2010-11-27 11:04 ` Vedran Miletić
2010-11-27 12:29   ` Hans Hagen
2010-11-27 13:16     ` Mojca Miklavec
2010-11-27 13:25       ` Hans Hagen
2010-12-01 12:36         ` Michael Murphy [this message]
2010-12-01 12:58           ` Hans Hagen
2010-12-01 17:37             ` Michael Murphy
2010-12-01 17:42               ` Wolfgang Schuster
2010-12-02  4:02             ` Aditya Mahajan
2010-12-02  8:01               ` Hans Hagen
2010-12-02 11:01                 ` Aditya Mahajan
2010-12-02 11:04                   ` Hans Hagen
2010-12-02  7:19             ` Alan BRASLAU
2010-12-02 11:17               ` Hans Hagen

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=1291206989.2623.3.camel@silver-fox \
    --to=michael.murphy@uni-ulm.de \
    --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).