v21’s avatarv21’s Twitter Archive—№ 61,791

      1. thanks for the opportunity to explain in detail, Suze! I generate some splines in Node.js using Typescript and node-canvas (which emulates the browser Canvas APIs). This then uses Cairo (I think?) to render to an SVG file. @SzMarsupial/1183416710004695040
    1. …in reply to @v21
      I take that SVG and process it in a utility I wrote this weekend in Rust using the usvg library (which processes SVG into a minimal set). My utility generates another SVG file (for proofing), and a series of G code instructions. It also renders all the curves as a set of lines.
  1. …in reply to @v21
    I then use G Code Sender to... send that G code down the serial connection to the plotter (an Eleksdraw, running GRBL), which then moves back and forth and puts the pen up and down. I am pretty sure there are easier ways to do it.
    1. …in reply to @v21
      put the tool i made to convert SVGs into Eleksdraw G-Code online, if it is ever helpful to anyone else: github.com/v21/svg_eleksdraw