sugarlabs / turtleart-activity

A block-based Logo programming environment
MIT License
18 stars 54 forks source link

hollow line support #95

Open walterbender opened 6 months ago

walterbender commented 6 months ago

We have support for a "hollow line" in the JavaScript version of Turtle. It appears on the Pen Palette and implemented in the Turtle Painter code.

https://github.com/sugarlabs/musicblocks/blob/2d4f48bd62908ca16a8abe15742615270677a006/js/blocks/PenBlocks.js#L588

https://github.com/sugarlabs/musicblocks/blob/2d4f48bd62908ca16a8abe15742615270677a006/js/turtle-painter.js#L262

Screenshot from 2024-05-28 07-18-40

The block is really useful for 3-D printing, where you can directly extrude from the exported SVG using programs like TinkerCad.

Josh Burker has lots of fun lesson plans that use this feature:

See https://www.redalyc.org/pdf/547/54741184007.pdf

The goal here is to provide similar functionality to the Python code.