% Testfile for transparent colors used as the text-background
% Hans Hagen
% CONTEXT file
% filename: transparentbackground.tex
% W. Egger
% 09-01-2005

\setupoutput[pdftex]

\setupcolors[state=start]

\startuseMPgraphic{tBG}
	path p ;
	p := unitsquare xscaled \overlaywidth yscaled \overlayheight ;
	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=green,state=repeat]

\starttext

\input tufte\page

\setupbackgrounds[text][background=textBG,state=repeat]
\input tufte
\stoptext
