Hans Hagen schrieb:
Peter Rolf wrote:
Hi,
hex colors don't work anymore in mkii (no problems in mkiv). All I
get is black (reminds me of a song by the Rolling Stones)...
I see a red door and I want it painted black
No colors anymore I want them to turn black
...
Minimal example:
----------------
\setupcolors[state=start]
\setupcolor[hex] % load hex color module
\definecolor[hextest][h=00FF00]
\starttext
\startMPcode
fill unitsquare xyscaled(5cm,5cm) withcolor \MPcolor{hextest};
\stopMPcode
\stoptext
hm so it's actually used ... make a file colo-hex.tex:
yep. not useful if you define the colors by hand, but perfect (very
small size) for automated rgb color palette conversions (xml colors ->
tex colors).
thx.
% this is just a stub
\loadmarkfile{colo-hex}
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 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 : https://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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________