W3C home > Mailing lists > Public > www-svg@w3.org > April 2008

Re: gradient of stroke-width

From: Dr. Olaf Hoffmann <Dr.O.Hoffmann@gmx.de>
Date: Tue, 15 Apr 2008 15:13:24 +0100
To: www-svg@w3.org
Message-Id: <200804151613.25116.Dr.O.Hoffmann@gmx.de>

Doug Schepers:

>You cannot do this now (the link above is just an old proposal), but you 
>should be able to do this using Vector Effects, a spec we are working on 
>going forward.

One way to do it now could be to extract the path to a number cruncher
and to compute a new path looking like a path with different stroke-width.

Should be not much work - I already wanted to write a (PHP-)script doing
this, but there was no time up to now for this ;o)

Something related seems to be the calligraphy function of inkscape, 
simulating paths with different width using filled paths without a stroke.

Calligraphy has some other rules to derive the new path than that
what one might do typically - assuming the 'current width' to be 
perpendicular to the 'current progression direction' of the path,
which can be derived more or less easly from the mathematical
representation of the used commands (Bezier curves etc) of the
initial path. 
Received on Tuesday, 15 April 2008 14:25:03 GMT

This archive was generated by hypermail 2.3.1 : Friday, 8 March 2013 15:54:39 GMT