For anyone on Brave or Firefox with protection enabled: you have to turn it off, because canvas randomisation will just result it in it permanently drawing a mess of lines covering the entire square forever.
webgl/canvas is used for abusive fingerprinting for tracking you through different brosers, checking what GPU you use, persistent cookieless re-association
This is great! I just created a pen holding adapter for my 3d printer so I can do some plots. I still need to find a good way to efficiently convert SVG files to gcode, but this will be a good start.
Inkscape has a gcode generation tool, but it requires some tweaks to work on my prusa 3d printer. Still a work in progress!
If you can use an editor like Inkscape to flatten the image (by recursively ungrouping until every path is under the top-level tag), you should have a bunch of paths that share a coordinate space. There are pathological cases like images that use CSS for positioning, but for most cases this will work.
I used to do kind of the opposite art/bored in class thing. Doodle a bunch of random loops and lines. Then see if I could see a graphic of something in there. Sort of my own rorschach test. Then try to bring out that image by going over those lines. I can't be the only one to do this.
Comments (74) 30 threads
Earlier commentsInkscape has a gcode generation tool, but it requires some tweaks to work on my prusa 3d printer. Still a work in progress!
An untested python one-liner:
Grab the code for homing and stuff from the start of another gcode file that works.Then you can use something like svgpathtools (https://github.com/mathandy/svgpathtools) in Python to loop over the paths and get the coordinates.
In case it's useful, I have an example svg to gcode converter here: https://github.com/paulgb/penkit/blob/master/penkit/polargra...
It is for driving a polargraph-style plotter, so it includes a coordinate transform that GP does not need to do.
https://github.com/javierbyte/pintr/blob/master/lib/svg.js#L...
* Update to add a link to the code that generates the SVG.
Continue this thread — 4 replies
All comments shown.
Couldn't load more comments. Check your connection and try again.