abey79 / vsketch

Generative plotter art environment for Python
https://vsketch.readthedocs.io/en/latest/
Other
493 stars 50 forks source link

Dashed Lines #337

Open rachase opened 1 year ago

rachase commented 1 year ago

Is there a method, or any easy way to create dashed lines out of paths? Would be nice if you could draw an ellipse (or other primitive) and specify the dash intervals and then add it to a shape object.

abey79 commented 1 year ago

That's a feature I've had in mind for a while but haven't implemented yet.

rachase commented 1 year ago

Might also be cool to be able to specify whether its a line, or a random squiggle, different shape, etc. Is it possible to get the points out of a vsk.ellipse (or other) command and then subsample it?

abey79 commented 1 year ago

206 is meant to implement a mechanism where arbitrary styling could be implemented by passing functions that would transform every line (e.g. created by rect or ellipse, etc.) into something else. Dashed lines, squiggly lines, anything could be implemented.