On 12/6/2012 7:35 PM, Marco wrote:
On 2012–12–06 Aditya Mahajan wrote:

I always thought that shadows were possible to do in PDF (after all
TikZ does it using some type of PDF primitives).

It is. I use MetaPost to draw the shadows using the shading
mechanism:

   withshading("circular", urcorner bottom_left, urcorner bottom_left, radius, 
0)
   withfromshadecolor \MPcolor{c:transparent}
   withtoshadecolor   col;

and it works well if placed in an overlay. However, I did not manage
to get it working in TikZ, it could not display shadings to
transparent colours (which is very handy for slides where the
shadings might overlay graphics with a non-uniform colour).

I think drops are somewhat different as they might follow different rules than circular or linear shades

Since you are the PDF expert, I am interested in knowing why you
choose to go the ImageMagic route.

 From my experience shadows made from MetaPost shadings (which uses
PDF shadings, I assume) are quite low level. It's harder to get the
angle, distance and shadow size correctly implemented. I think the
ImageMagick shadings are more high level and ready to use.

Yes. Of course we can make shading more clever, but to be honest I never had the need.

Hans

-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
    tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                             | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to