Procedural Dashed Lines

Create issue
Issue #22 new
Rick Barrett created an issue

A generator that creates dashed splines based on spline input. Input (and ideally output) should match Illustrator.

Rick's Implementation (attached): It pretty much works as long as the dash length is short. As the dashes get longer though, you lose the curvature, because I didn't figure out how to set the intermediate points to maintain the same curvature. You can change the dash length by adjusting line 19 of the generator - bump it to 100+ to start seeing the issue.

Donovan's thoughts: Cool! Seems like you could use the LineObject (subdivided spline) generated by the initial spline, and then just generate long dashes that are more than two points long.

Comments (1)

  1. Log in to comment