ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Colors changing when applying "transparent"
@ 2003-11-25  8:20 Willi Egger
  2003-11-25  9:37 ` Hans Hagen
  0 siblings, 1 reply; 5+ messages in thread
From: Willi Egger @ 2003-11-25  8:20 UTC (permalink / raw)


Hi,

I would like to use transparnt colors in one of the documents. However the 
resulting color is different with transparent color. Could anyone try the 
following code twice setting the %-sign in front of the fill-statement:

\setupoutput[pdftex]
\starttext
\setupcolors[state=start]

\startuseMPgraphic{tBG}
         path p ;
         p := unitsquare xscaled \overlaywidth yscaled \overlayheight ;
         fill p withcolor \MPcolor{white}; % With normal colors, everything 
is fine (blue is really RGB(0,0,1)
         % fill p withcolor transparent("normal",.5,\MPcolor{white}); % 
This however results in fading of ALL of the colors...
\stopuseMPgraphic

\defineoverlay[textBG][\useMPgraphic{tBG}]

\setupbackgrounds[page][background=color,backgroundcolor=blue]
\setupbackgrounds[text][background=textBG]

\input tufte
\stoptext

I would expect that the optical appearance of blue shoud not change after 
application of the transparent color to the gray areq.

Regards Willi 

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

end of thread, other threads:[~2003-11-25 13:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-11-25  8:20 Colors changing when applying "transparent" Willi Egger
2003-11-25  9:37 ` Hans Hagen
2003-11-25 11:46   ` Willi Egger
2003-11-25 12:10     ` Hans Hagen
2003-11-25 13:00       ` Willi Egger

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