ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* missing MP shading
@ 2008-01-30 12:55 Peter Rolf
  2008-01-30 13:05 ` Mojca Miklavec
  0 siblings, 1 reply; 3+ messages in thread
From: Peter Rolf @ 2008-01-30 12:55 UTC (permalink / raw)
  To: mailing list for ConTeXt users

[-- Attachment #1: Type: text/plain, Size: 240 bytes --]

hi list,

i have some problems with reusing a picture in mp. the shading is 
missing, if the picture is shifted to another position (see minimal 
example). any help welcome.

[program versions: the latest, the greatest..]

greetings, peter

[-- Attachment #2: shade.tex --]
[-- Type: text/plain, Size: 474 bytes --]

\setuppagenumber[state=stop]
\setupcolors[state=start]

\startuniqueMPgraphic{test}
    save p,q; picture p; path q;

    q:= unitsquare xyscaled (OverlayWidth,.5OverlayHeight);
    p:= image(linear_shade(q,6,red,green));

    addto currentpicture also p;
    addto currentpicture also (p yshifted .5OverlayHeight);
\stopuniqueMPgraphic

\defineoverlay[test] [\uniqueMPgraphic{test}]

\starttext
\framed[width=10cm,height=10cm,background=test]{}
\stoptext

[-- Attachment #3: Type: text/plain, Size: 487 bytes --]

___________________________________________________________________________________
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:[~2008-01-30 13:24 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-01-30 12:55 missing MP shading Peter Rolf
2008-01-30 13:05 ` Mojca Miklavec
2008-01-30 13:24   ` Peter Rolf

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