RECENT WORK ︎︎︎

ITP BLOG ︎︎︎

ABOUT ︎︎︎

crandall.lily@gmail.com

@dullhouze



WEEK 5 - FUNCTIONS


LINK TO HOMEWORK SKETCH



This week’s assignment made me think a lot about how I write my code. It also made me realize I hard-code a lot of numbers into my sketches.

Writing the sections of my code into functions was not hard at all - it was the re-writing of the whole sketch to make it independent of the canvas size that was the hard part. It would have been easier to make the whole thing from scratch. 

Setting all of the x and y coordinates in reference with the width and the height got messy really fast. I thought about making variables for width/6, height/22, etc, but it honestly made it more difficult for me to understand my code.



It was really satisfying when it was finally done, though, to change the window size and have the sketch change in scale with it. 

The worksheet wasn’t difficult once I understood the format of a function an, d how to adjust the values in it. The bouncing ball was the hardest to wrap my head around, but I got help from the ICM workshop and was able to figure it out.

Part of my array of subway line names & colors for the challenge on the worksheet: