Skip to content

Commit

Permalink
*°-°><°-°*
Browse files Browse the repository at this point in the history
  • Loading branch information
bbaudry committed Oct 20, 2023
1 parent b78fca0 commit 3890ccf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions penplotting/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,9 @@ Once you are happy with your sketch, save it as an svg, for example [```pointill
## Directly 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
* We have compiled the [svg2gcode](https://docs.rs/svg2gcode/latest/svg2gcode/) crate to webassembly. We have followed 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 you can then feed the scg generated by p5 into the svg2gcode in wasm. We have a first integration in The sketch in [plottable001.html](https://github.com/bbaudry/swart-studio/blob/main/penplotting/plottable001.html)
* 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)


## Notes
Expand Down

0 comments on commit 3890ccf

Please sign in to comment.