A project specifies that for the cover of a brochure there be a photograph as the background (doable in Context), and semi-transparent rectangles across the page highlighting the various strings of text. The rectangles darken but do not completely block out the underlying illustration. It is a layer cake, a photo, with semi-transparent rectangles laid across it, and type within the rectangles. This is a job more easily done in Gimp etc. but my question is, can it be done in Context at all? How do I create the semi-transparent elements? -- John Culleton Want to know what I really think? http://apps.wexfordpress.net/blog/ And my must-read (free) short list: http://wexfordpress.com/tex/shortlist.pdf
Hi John, John Culleton schrieb:
A project specifies that for the cover of a brochure there be a photograph as the background (doable in Context), and semi-transparent rectangles across the page highlighting the various strings of text. The rectangles darken but do not completely block out the underlying illustration. It is a layer cake, a photo, with semi-transparent rectangles laid across it, and type within the rectangles.
This is a job more easily done in Gimp etc. but my question is, can it be done in Context at all? How do I create the semi-transparent elements?
something like \startuniqueMPgraphic{transp:dim} fill OverlayBox withcolor transparent(1,.25,white); % mode,transp.,color \stopuniqueMPgraphic \defineoverlay[transp:dim] [\uniqueMPgraphic{transp:dim}] \framed[background=transp:dim]{your text} There are some problems with transparency in MP at the moment, so the fill color is fixed and not a parameter of the MP graphic. Anyhow, this should do the job. Peter
On Sat, 27 Oct 2007 17:51:14 -0400
John Culleton
A project specifies that for the cover of a brochure there be a photograph as the background (doable in Context), and semi-transparent rectangles across the page highlighting the various strings of text. The rectangles darken but do not completely block out the underlying illustration. It is a layer cake, a photo, with semi-transparent rectangles laid across it, and type within the rectangles.
This is a job more easily done in Gimp etc. but my question is, can it be done in Context at all? How do I create the semi-transparent elements?
Hi John, you can define a color for the transparent background of the text and place it with the cover text at the background. \setupcolors[state=start] \setupexternalfigures[location=global] \definecolor[coverred][r=1,a=1,t=.5] \defineoverlay[coverimage][\overlayfigure{mill}] \definelayer [covertitle] [width=\paperwidth, height=\paperheight] \setlayerframed [covertitle] [hoffset=0cm, voffset=8cm] [frame=off, width=\paperwidth, height=6cm, background=color, backgroundcolor=coverred, align={middle,lohi}] {\tfd Cover Text} \starttext \setupbackgrounds[page][background={coverimage,covertitle}] \startstandardmakeup \stopstandardmakeup \stoptext Wolfgang
participants (3)
-
John Culleton
-
Peter Rolf
-
Wolfgang Schuster