Skip to content Skip to sidebar Skip to footer

How To Divide The Path Into Several Segments?

I need to divide the Path into several sections. For example, a Path has a dashArray parameter that specifies the length of the dash and length of the gap. I need to get one or mor

Solution 1:

I found the solution to my problem. PaperJS have a method Path.getPointAt(offset) Here offset - is ofsset in pixels from start of path. I maked simple sketch


Post a Comment for "How To Divide The Path Into Several Segments?"