Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.


The function shapeE() shows how functions can be nested into other functions to simplify otherwise complex programming tasks. Drawing those 7 stars would take many lines of code, but with functions I can pare it down to defining a triangle star once in shapeD and then iterating it seven times in shapeE. 


I learned a few things on this project. Most importantly, that the internet is my friend for all questions about programming. Second, to make math work normally you must add a append .0 to every number. Third, that even the simplest projects can proliferate into hugely complex undertakings. I only hope no one points out a dead-simple solution to drawing the even sided star.