IMG_6316.JPG

itp

Week 4 ICM: Refactoring Code

For this week’s assignment, I decided to revisit my squid/sea-monster from last week. I decided to work on this sketch for a bunch of reasons:

1) There were tons of repetitive shapes that I knew could be collapsed into objects

2) The existing code already had some things sealed into functions

3) We had had trouble getting certain functions to work outside the draw loop.

The original code can be seen here and the refactored code here.

ICM, ITPCaroline NeelComment