RE: lines to vectors, vectors to GIF, [was RE: Back to svg-developers

"'Dailey, David P.' [email protected] [svg-developers]" <[email protected]> Tue, 11 Nov 2014 12:46:22 +0000
Newsgroups gmane.text.xml.svg.devel
Message-ID <[email protected]>
Hi Domenico,

Indeed. The relationship to calligraphy brings to mind a couple of related thoughts.

1. For purposes of showing the animated drawing of calligraphy, it would be nice to have access to something like the path length, declaratively.
In http://cs.sru.edu/~ddailey/svg/cssSVGrotate3.htm if I recall right I had to actually calculate the circumference of the ellipse to have the animation of stroke-dashoffset start and stop at the right point. * I didn't remember the formula for determining the circumference of an ellipse, but fortunately it was easy. One could do it using getTotalLength() but that requires script.
If one could say something like


<animate attributeName="stroke-dashoffset" fullpathlength="true" dur="4s" repeatCount="indefinite"/>

that would be very convenient, particularly for shapes like in calligraphy where the length is nontrivial to calculate.

2. Have you been following the discussions, some months back, at  http://lists.w3.org/Archives/Public/www-svg/ about variable stroke width? There were a couple of relatively simple proposals, but it seems that ultimately, one would like to be able to control stroke width through a function that varies the stroke width according to a specified curve. Sorta like how in <replicate> one can use one curve to control the attributes of another curve-- e.g. http://cs.sru.edu/~ddailey/svg/pathRep2JS.svg . Not sure if the working group is up for considering more adventurous things, yet or not, with all their work in bringing SVG power into HTML through CSS. Hopefully that work is nearly completion.

Alex Danilo posted this wonderful video two days ago:
 https://www.youtube.com/watch?v=WnldoklxyGM
discussing some of the very promising advances with SVG fonts and animation that should, if Mozilla's proposals find traction help on both important fronts. I may repost the link in another message since many will not burrow so deeply in this particular thread. I have a tendency toward long-windedness I am told.

cheers
David

* some browser difficulties existed in this example: http://cs.sru.edu/~ddailey/svg/StrokeEffects.jpg
a cooler example "peeling an apple" (in which two circuits of the shape are unpeeled) can be seen at http://cs.sru.edu/~ddailey/svgtests/gradientStroke1d.svg

________________________________
From: [email protected] <[email protected]> on behalf of [email protected] [svg-developers] <[email protected]>
Sent: Tuesday, November 11, 2014 6:00 AM
To: [email protected]
Subject: Re: lines to vectors, vectors to GIF, [was RE: [svg-developers] Back to svg-developers


Strangely enough the question is also somehow related to the previous thread about calligraphy. A software calligrapher would allow you to enter text, choose a pen nib, set inclination, font design parameters like contrast etc., in short, all that is in your mind (and in calligraphy and fonts books) when attempting calligraphy.

Domenico



------------------------------------
Posted by: "Dailey, David P." <[email protected]>
------------------------------------

-----
To unsubscribe send a message to: [email protected]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my membership"
----