Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dashed Lines #337

Open
rachase opened this issue Dec 6, 2022 · 3 comments
Open

Dashed Lines #337

rachase opened this issue Dec 6, 2022 · 3 comments

Comments

@rachase
Copy link

rachase commented Dec 6, 2022

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
Copy link
Owner

abey79 commented Dec 6, 2022

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

@rachase
Copy link
Author

rachase commented Dec 6, 2022

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
Copy link
Owner

abey79 commented Dec 6, 2022

#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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants