From 245a4ce6fd33c2ad3f0358e500495e0e77f620ca Mon Sep 17 00:00:00 2001 From: bbaudry Date: Fri, 17 Nov 2023 14:51:08 +0100 Subject: [PATCH] =?UTF-8?q?.=C2=B0}-><-{=C2=B0.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- penplotting/README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/penplotting/README.md b/penplotting/README.md index 2313ddad..5343f02e 100644 --- a/penplotting/README.md +++ b/penplotting/README.md @@ -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)