Week5 – Re-organize the code with functions

This week, I just rearranged my self-portrait using the functions. And when I try to re-code the section of the hair depiction using the array, it appears that I have found the answer to the questions I posed in the first week. The array is quite useful for drawing finite quantities of repetitions, but with certain modifications.

code11

It used to be many lines of code, and hard to change values. 

Code of Re-organization

Leave a Reply

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