Re: [SVG2 CR] variable stroke width?

Hello,

yes, surely it is.
I think there is more than one approach possible and available.
The change of the width along the stroke should be a sequence of cubic 
splines, comparable to calcMode spline for animations, to cover for example 
use cases like calligraphy, representation of the change of probabilities 
along different possible paths in coupled channel calculations etc.
I tried myself to calculate something to convert a curved stroke with variable 
width to path data, but the solution is not exactly representable as path data 
and to calculate good approximation is not within the capabilities of all 
authors, for a variable width it is even more complex than for a constant 
width, typically not convertible exactly into path data as well.

For authors currently not an easy task to work around this problem.
For example the proposal for replicate (something to effectively create a troop 
of similar shapes) was rejected as for SVG 2.
What remains: Generating for example with PHP troops of circles with different 
radius, arranged along a path.
Unfortunately even for simple paths one needs lots of circles with the result,
that files become very huge.

Even if one does not have a splineable width, just affine changes, this is 
already a progress, instead of having thousands of circles, one only needs
a list if maybe hundreds of widths per path to approximate it.

Olaf


Satoru Takagi:
> Hi,
> 
> This thread may be related to variable stroke width?
> https://lists.w3.org/Archives/Public/www-svg/2013Sep/0028.html
> 
> 

Received on Tuesday, 20 September 2016 08:56:53 UTC