* 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
* Re: missing MP shading
2008-01-30 12:55 missing MP shading Peter Rolf
@ 2008-01-30 13:05 ` Mojca Miklavec
2008-01-30 13:24 ` Peter Rolf
0 siblings, 1 reply; 3+ messages in thread
From: Mojca Miklavec @ 2008-01-30 13:05 UTC (permalink / raw)
To: mailing list for ConTeXt users
On Jan 30, 2008 1:55 PM, Peter Rolf wrote:
> 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.
Hans mentions this problem in the MP manual, I think (copied circles
with radial shading).
(Doesn't mean that it's unsolvable.)
You need to regenerate p since shading position is kind-of-global.
Mojca
___________________________________________________________________________________
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: missing MP shading
2008-01-30 13:05 ` Mojca Miklavec
@ 2008-01-30 13:24 ` Peter Rolf
0 siblings, 0 replies; 3+ messages in thread
From: Peter Rolf @ 2008-01-30 13:24 UTC (permalink / raw)
To: mailing list for ConTeXt users
Mojca Miklavec schrieb:
> On Jan 30, 2008 1:55 PM, Peter Rolf wrote:
>> 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.
>
> Hans mentions this problem in the MP manual, I think (copied circles
> with radial shading).
> (Doesn't mean that it's unsolvable.)
>
ah, stupid me (for ignoring the manual again). i'll have a look.
> You need to regenerate p since shading position is kind-of-global.
>
so the "image" trick doesn't work here and i have to find another solution.
thanks mojca
> Mojca
> ___________________________________________________________________________________
> 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
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).