[NTG-context] blurred shadow on images?

Henning Hraban Ramm hraban at fiee.net
Wed Jun 30 14:39:55 CEST 2010

Am 2010-06-21 um 08:42 schrieb Taco Hoekwater:
> Creating a semi-transparent backdrop with metapost is quite simple,
> but I am not sure whether that works with cmyk, you'll have to try
> yourself. Code goes something like this:

For the records: This is, how I'll use it:

for dx = 0 upto 40:
	 dy := dx;
	 wa := 10 + dx;
	 wb := \overlaywidth - dx - 10;
	 ha := dy + 10;
	 hb := \overlayheight - dy - 10;
	 fill (wa,ha)--(wb,ha)--(wb,hb)--(wa,hb)--cycle
		withcolor transparent("normal", .04, black);



\framed[height=50mm, width=50mm, frame=off, background=shaded,  
backgroundoffset=5mm, align=middle]%


I'm glad I found \offset, because framed's offset parameter can't  
distinguish x and y offset.
Positive offset moves right and down, negative offset moves just up -  
I guess that's a buglet.

Greetlings from Lake Constance!
https://www.cacert.org (I'm an assurer)

More information about the ntg-context mailing list