-
-
Notifications
You must be signed in to change notification settings - Fork 307
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
Export to SVG file #379
Comments
For reference, Processing and OpenFrameworks have solutions for this (I'm unsure how complete or fully-featured they are): |
Thanks for opening this @sethboyles! If you're mostly interested in drawing the contents of a
Each triangle contains the color and position data for each vertex. Perhaps these triangles can be used alongside the svg crate somehow to produce the SVG? It wouldn't produce the most optimal SVG (e.g. tessellation of all the primitives would already be performed) but it might be a good-enough work around in the meantime depending on the use case? I agree it would be nicer to have a proper solution in the future. One thought that crosses my mind is, rather than tessellating each shape as they're drawn, we could store them as a list of commands in the |
Would love to see this too. |
@mitchmindtree I'm thinking of taking this on, that is the "proper solution." I'm a bit confused by your comment though after a cursory glance at the source code. Aren't the list of commands already stored in the |
have recently just begun looking into using nannou/rust, would also love to see this. Willing to help if possible. |
The would be nice. Anyone working on this currently? |
Hello all 👋 I'm very interested in SVG import / export for Nannnou. |
An "Export to SVG file" would be something handy for users who would like to take images from their nannou sketches and work with them externally (e.g. printing, laser cutting, axidraw, etc).
Since lyon is in the process of being added to nannou (see #375), it'd probably be best to look at how to convert the results from lyon to SVG.
As noted in the lyon README:
The text was updated successfully, but these errors were encountered: