* Semi-transparent banners for a cover.
@ 2007-10-27 21:51 John Culleton
2007-10-28 11:32 ` Peter Rolf
2007-10-28 13:02 ` Wolfgang Schuster
0 siblings, 2 replies; 3+ messages in thread
From: John Culleton @ 2007-10-27 21:51 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
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: Semi-transparent banners for a cover.
2007-10-27 21:51 Semi-transparent banners for a cover John Culleton
@ 2007-10-28 11:32 ` Peter Rolf
2007-10-28 13:02 ` Wolfgang Schuster
1 sibling, 0 replies; 3+ messages in thread
From: Peter Rolf @ 2007-10-28 11:32 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
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: Semi-transparent banners for a cover.
2007-10-27 21:51 Semi-transparent banners for a cover John Culleton
2007-10-28 11:32 ` Peter Rolf
@ 2007-10-28 13:02 ` Wolfgang Schuster
1 sibling, 0 replies; 3+ messages in thread
From: Wolfgang Schuster @ 2007-10-28 13:02 UTC (permalink / raw)
To: ntg-context
On Sat, 27 Oct 2007 17:51:14 -0400
John Culleton <john@wexfordpress.com> wrote:
> 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
___________________________________________________________________________________
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:[~2007-10-28 13:02 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-10-27 21:51 Semi-transparent banners for a cover John Culleton
2007-10-28 11:32 ` Peter Rolf
2007-10-28 13:02 ` Wolfgang Schuster
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).