amidoinitrite homework

Manipulating SVG files

Making my way through the Manipulating SVG files recipe from the Processing 2 Creative programming cookbook source code on GitHub. In this recipe I learned:

  • more about using the shape function to draw shapes in the display window
  • how to declare the PShape object and create custom variables (snowFlake, small1 to small6 and big1) and the disableStyle, enableStyle, fill and stroke functions to manipulate discrete parts of the SVG loaded into the Sketch.
  • how to use getChild to get text (small1 to small6) from the id attribute of each shape in the SVG file.


Leave a Reply

Your email address will not be published. Required fields are marked *