This project takes one type of SVG data, parses it and draws it using the Scratch Pen extension. Instructions for a remix: - Remix - Draw your own simple vector image (see limitations below), and export it. - Open your SVG in a text editor and remove everything but the path d parameter values, one on each line. - Search and replace comma (,) for hash (#) to enable import into Scratch. - Enter the editor in your remix, show the SVG list and import your text file. - Open the "import SVG" sprite, and run the script to search and replace hash (#) for comma (,). - Run the project. - Let me know how it works for you! Background: Most vector art drawn in the Scratch Vector Editor is saved as Path elements. The coordinates are stored in the "d" parameter using different commands. In this project, I've implemented the capital M command (moveTo absolute coordinates), the lowercase c command (Bezier curve to relative coordinates) and the z or Z command (which closes a path). These are the commands mostly generated by the Scratch editor.
@kriblo this is amazing ! there will be some really cool possibilities for this :D also i didn't know you could circumvent commas making new entries in an imported list like that, that's great ! :D