Skip to content

Commit

Permalink
.°}-><-{°.
Browse files Browse the repository at this point in the history
  • Loading branch information
bbaudry committed Nov 17, 2023
1 parent 5f2521f commit 245a4ce
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions penplotting/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ One can change the size of the artwork by setting the density with `-d 32` (defa
### P5->SVG->GCDODE from the browser

* [p5.js-svg](https://github.com/zenozeng/p5.js-svg) with [p5.js v1.5](https://cdnjs.cloudflare.com/ajax/libs/p5.js/1.5.0/p5.js), as documented above
* in p5.js, a canvas of ```h = 1053; w = 744``` will print perfectly on a A4 sheet, directly out of juicy-gcode, with no need to rescale
* We have compiled the [svg2gcode](https://docs.rs/svg2gcode/latest/svg2gcode/) crate to webassembly. See Mozilla's guidelines to [compile rust to webassembly](https://developer.mozilla.org/en-US/docs/WebAssembly/Rust_to_wasm).
* The results are in [```https://github.com/bbaudry/swart-studio/blob/main/penplotting/web_svg2gcode_bg.wasm```](web_svg2gcode_bg.wasm) and [```web_svg2gcode.js```](https://github.com/bbaudry/swart-studio/blob/main/penplotting/web_svg2gcode.js) files
* In the html page, feed the svg generated by p5 into the svg2gcode in wasm. We have a first integration in [plottable001.html](https://github.com/bbaudry/swart-studio/blob/main/penplotting/plottable001.html)
Expand Down

0 comments on commit 245a4ce

Please sign in to comment.