ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* beta (11.05.2009): hex colors in mkii
@ 2009-05-11 13:09 Peter Rolf
       [not found] ` <4A082BAD.4000502@wxs.nl>
  0 siblings, 1 reply; 3+ messages in thread
From: Peter Rolf @ 2009-05-11 13:09 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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


Dammit, now that song is in my head... ;)


Best wishes,  Peter
___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: beta (11.05.2009): hex colors in mkii
       [not found] ` <4A082BAD.4000502@wxs.nl>
@ 2009-05-11 14:09   ` Peter Rolf
  2009-05-11 14:44   ` Aditya Mahajan
  1 sibling, 0 replies; 3+ messages in thread
From: Peter Rolf @ 2009-05-11 14:09 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: beta (11.05.2009): hex colors in mkii
       [not found] ` <4A082BAD.4000502@wxs.nl>
  2009-05-11 14:09   ` Peter Rolf
@ 2009-05-11 14:44   ` Aditya Mahajan
  1 sibling, 0 replies; 3+ messages in thread
From: Aditya Mahajan @ 2009-05-11 14:44 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Mon, 11 May 2009, Hans Hagen wrote:

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

I also use hex colors in the vim module (I personally haven't used the 
vim module in some time, but there are users who use it).

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-05-11 14:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-05-11 13:09 beta (11.05.2009): hex colors in mkii Peter Rolf
     [not found] ` <4A082BAD.4000502@wxs.nl>
2009-05-11 14:09   ` Peter Rolf
2009-05-11 14:44   ` Aditya Mahajan

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).