Mobile app version of vmapp.org
Login or Join
Steve758

: Path to stroke, is it possible? What I'm doing is animating a stroke by first setting its stroke-dasharray and stroke-dashoffset, and then animating its stroke-dashoffset, so that the stroke appears

@Steve758

Posted in: #BezierCurve #Inkscape #Path #Stroke #Svg

What I'm doing is animating a stroke by first setting its stroke-dasharray and stroke-dashoffset, and then animating its stroke-dashoffset, so that the stroke appears as if it is being drawn by an invisible hand in real time.

However, line animations require strokes because paths prevent stroke-dasharray and stroke-dashoffset from having any noticeable effect.

I need a stroke with a width of exactly 1px that is a perfect quarter-circle.

But, since I suck at creating perfectly curved strokes of a particular width, the only way I know how to achieve this is by creating a path from a circle object.

Is it possible to convert a path to a stroke?

Or is there a way to create a perfect, quarter-circle stroke that has a width of one pixel other than simply writing the code myself?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Steve758

1 Comments

Sorted by latest first Latest Oldest Best

 

@Carla748

In Inkscape, the Pattern along path will convert a path to be repeated or stretched along a path, effectively making it like a stroke. Documentation can be found here:
tavmjong.free.fr/INKSCAPE/MANUAL/html/Paths-LivePathEffects-PatternAlongPath.html
You can also use this to make strokes have custom "cap" shapes (such as a quarter circle) if the usual "rounded" and "squared" options under the "Stroke Style" tab aren't good enough for you.

Sounds like your ultimate goal, however, is to just animate the svg path so that it looks like it is being drawn by an invisible hand. In that case, I'd recommend just drawing the path, and then using vivus.js to animate it. Documentation for vivus can be found here:
maxwellito.github.io/vivus/

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme