On 1-12-2010 1:36, Michael Murphy wrote:
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?
I'm pretty sure that I never implemented something using a questionmark.
However, we do have:
\definecolor[red-t] [r=1,t=0.5,a=1]
\definecolor[green-t][g=1,t=0.5,a=1]
\defineintermediatecolor[mycolora][0.5,red,green]
\defineintermediatecolor[mycolorb][0.5,red-t,green-t]
\starttext
test {\mycolora OEPS} test
test {\mycolorb OEPS} test
\stoptext
I could probably support
\definecolor[xxx][0.5(red,green)]
\definecolor[xxx][0.5(red)]
which looks better than this ! and is less likely to conflict with names
as abc! is a rather value color name.
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
___________________________________________________________________________________