[pstricks] shadow and psbezier

Arnaud BLOUIN arno.blouin at tele2.fr
Mon Jan 22 12:36:47 CET 2007


Herbert Voss a écrit :
> Arnaud BLOUIN schrieb:
>   
>> Hi,
>> I have just remark that when you add a shadow to a frame, an ellipse, 
>> ..., the shape is automatically filled ; but when you add a shadow to a 
>> psbezier it is not the case. Is it possible to homogenize that (I would 
>> want that all the figures have the same behaviour as the psbezier)?
>>
>> \begin{pspicture}(0,-1)(7,5)\psgrid
>> \psframe[shadow=true](1,1)(3, 3)
>> \psellipse[shadow=true](4,1)(1,1.5)
>> \psbezier[shadow=true](0.5,0.7)(2.1,1)(6.9,3.5)(6.6,4.5)
>> \end{pspicture}
>>   
>>     
> at first, a shadow to a _line_ doesn't really make sense!
>
> The shadow is build  as a copy of the current path, which
> is filled and then used as an underlying overlay to the original
> closed path whith the difference of psk at shadowsize. This is
> the _same behaviour_ for all objects. A line cannot be filled, the
> reason why you cannot get what you might expect to see.
>
> Herbert
>
>   
Who spoke about a line? I'm speaking about a Bézier curve ; moreover a 
shadow to a line doesn't really make sense?! That's new! And why not? A 
line is a shape like an ellipse, a circle, ...
When you have several joined-lines, this new shape is no more a line but 
an open polygon, as shown in the following example:

\begin{pspicture}(-1,-3)(12,2)\psgrid
\psline[shadow=true](0,-2)(0,1.7)(3,1.6)(3,-1.6)
\psbezier[shadow=true](6,-2)(7.4,-1.4)(7.33,0.7)(6.6,1.4)(6,2)(5,2)(4.6,1.3)(4,0.6)(3.5,-1.4)(4,-2)
\pspolygon[shadow=true](8,-2)(8,1.7)(11,1.6)(11,-1.6)
\end{pspicture}

Arnaud





-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://tug.org/pipermail/pstricks/attachments/20070122/985615c8/attachment.html 


More information about the PSTricks mailing list