ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* No color even though \setupcolors[state=start]
@ 2004-11-04 17:07 David Arnold
  2004-11-04 17:13 ` David Arnold
  2004-11-04 17:24 ` Matthias Weber
  0 siblings, 2 replies; 3+ messages in thread
From: David Arnold @ 2004-11-04 17:07 UTC (permalink / raw)


All,

Can anyone tell me why I am not getting any color (red and yellow)?

\startuseMPgraphic{layout 1}
pickup pencircle scaled 1mm;
fill unitsquare xyscaled (7cm,8cm) withcolor 0.85white;
fill unitsquare xyscaled (5cm,5cm) shifted (1cm,1.5cm) withcolor 0.625yellow;
fill unitsquare xyscaled (5cm,1cm) shifted (1cm,0.5cm) withcolor 0.625red;
fill unitsquare xyscaled (5cm,1cm) shifted (1cm,6.5cm) withcolor 0.625red;
fill unitsquare xyscaled (5cm,7cm) shifted (1cm,0.5cm) withcolor 0.25white;
drawarrow (2cm,8cm)--top (2cm,7.5cm);
drawarrow (0cm,7cm)--lft(1cm,7cm);
clip currentpicture to unitsquare xyscaled (7cm,8cm);
\stopuseMPgraphic

\startuseMPgraphic{layout 2}
\includeMPgraphic{layout 1}
clip currentpicture to unitsquare scaled 3cm shifted (0,5cm);
currentpicture:=currentpicture scaled 2 shifted (0,-8cm);
setbounds currentpicture to unitsquare xyscaled (6cm,8cm);
\stopuseMPgraphic


\setupcolors[state=start]

\starttext

\startlinecorrection[blank]
\hbox
{\useMPgraphic{layout 1}\hskip1cm
\useMPgraphic{layout 2}}
\stoplinecorrection

\stoptext

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

* Re: No color even though \setupcolors[state=start]
  2004-11-04 17:07 No color even though \setupcolors[state=start] David Arnold
@ 2004-11-04 17:13 ` David Arnold
  2004-11-04 17:24 ` Matthias Weber
  1 sibling, 0 replies; 3+ messages in thread
From: David Arnold @ 2004-11-04 17:13 UTC (permalink / raw)


All,

Duh! draw, not fill! Sorry.

At 09:07 AM 11/4/04 -0800, you wrote:
>All,
>
>Can anyone tell me why I am not getting any color (red and yellow)?
>
>\startuseMPgraphic{layout 1}
>pickup pencircle scaled 1mm;
>fill unitsquare xyscaled (7cm,8cm) withcolor 0.85white;
>fill unitsquare xyscaled (5cm,5cm) shifted (1cm,1.5cm) withcolor 0.625yellow;
>fill unitsquare xyscaled (5cm,1cm) shifted (1cm,0.5cm) withcolor 0.625red;
>fill unitsquare xyscaled (5cm,1cm) shifted (1cm,6.5cm) withcolor 0.625red;
>fill unitsquare xyscaled (5cm,7cm) shifted (1cm,0.5cm) withcolor 0.25white;

draw unitsquare xyscaled (5cm,7cm) shifted (1cm,0.5cm) withcolor 0.25white;

>drawarrow (2cm,8cm)--top (2cm,7.5cm);
>drawarrow (0cm,7cm)--lft(1cm,7cm);
>clip currentpicture to unitsquare xyscaled (7cm,8cm);
>\stopuseMPgraphic
>
>\startuseMPgraphic{layout 2}
>\includeMPgraphic{layout 1}
>clip currentpicture to unitsquare scaled 3cm shifted (0,5cm);
>currentpicture:=currentpicture scaled 2 shifted (0,-8cm);
>setbounds currentpicture to unitsquare xyscaled (6cm,8cm);
>\stopuseMPgraphic
>
>
>\setupcolors[state=start]
>
>\starttext
>
>\startlinecorrection[blank]
>\hbox
>{\useMPgraphic{layout 1}\hskip1cm
>\useMPgraphic{layout 2}}
>\stoplinecorrection
>
>\stoptext
>
>_______________________________________________
>ntg-context mailing list
>ntg-context@ntg.nl
>http://www.ntg.nl/mailman/listinfo/ntg-context
>
>

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

* Re: No color even though \setupcolors[state=start]
  2004-11-04 17:07 No color even though \setupcolors[state=start] David Arnold
  2004-11-04 17:13 ` David Arnold
@ 2004-11-04 17:24 ` Matthias Weber
  1 sibling, 0 replies; 3+ messages in thread
From: Matthias Weber @ 2004-11-04 17:24 UTC (permalink / raw)


Put your text  between \startproduct ... \stopproduct

Matthias

On Nov 4, 2004, at 12:07 PM, David Arnold wrote:

> All,
>
> Can anyone tell me why I am not getting any color (red and yellow)?
>
> \startuseMPgraphic{layout 1}
> pickup pencircle scaled 1mm;
> fill unitsquare xyscaled (7cm,8cm) withcolor 0.85white;
> fill unitsquare xyscaled (5cm,5cm) shifted (1cm,1.5cm) withcolor 
> 0.625yellow;
> fill unitsquare xyscaled (5cm,1cm) shifted (1cm,0.5cm) withcolor 
> 0.625red;
> fill unitsquare xyscaled (5cm,1cm) shifted (1cm,6.5cm) withcolor 
> 0.625red;
> fill unitsquare xyscaled (5cm,7cm) shifted (1cm,0.5cm) withcolor 
> 0.25white;
> drawarrow (2cm,8cm)--top (2cm,7.5cm);
> drawarrow (0cm,7cm)--lft(1cm,7cm);
> clip currentpicture to unitsquare xyscaled (7cm,8cm);
> \stopuseMPgraphic
>
> \startuseMPgraphic{layout 2}
> \includeMPgraphic{layout 1}
> clip currentpicture to unitsquare scaled 3cm shifted (0,5cm);
> currentpicture:=currentpicture scaled 2 shifted (0,-8cm);
> setbounds currentpicture to unitsquare xyscaled (6cm,8cm);
> \stopuseMPgraphic
>
>
> \setupcolors[state=start]
>
> \starttext
>
> \startlinecorrection[blank]
> \hbox
> {\useMPgraphic{layout 1}\hskip1cm
> \useMPgraphic{layout 2}}
> \stoplinecorrection
>
> \stoptext
>
> _______________________________________________
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
>
>

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

end of thread, other threads:[~2004-11-04 17:24 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-11-04 17:07 No color even though \setupcolors[state=start] David Arnold
2004-11-04 17:13 ` David Arnold
2004-11-04 17:24 ` Matthias Weber

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