ICM – Week Uno

I’ve never written code in my life…I’m a little scared….¬†Although I’ve managed to complete the quiz with relative ease, it took me quite some time to really understand what I was doing. I ran into the following problems when trying to complete my little monster:

I’m trying to add a yellow background color to my script and I keep getting this error:

Here is what my script currently looks like:

It is my understanding that the background color should be listed under function setup, and it appears that I have it in the right place. Now that I’m looking at the error code again it refers to an “unexpected token” in line 6, column 14 so I’m assuming one of the numbers is incorrect. What is even more distressing is that I tried editing this from a previously correct example named “Zoog” so when I refer to that one and correct it, my error still pops up! I have to admit, I gave up on the problem and started to watch the instructional videos which gave me some confidence to create a monster from scratch.

As a side note, I should mention that when creating the reproduced olive I ran into a problem making the line red. This was because I was putting “fill” instead of “stroke” (see below) Now I understand that order is very important.

………………………………………………………………………………………………………………..Just from playing around with Javascript for the first time, I’m starting to realize it’s massive functionality. The possibilities seem endless and it is both exciting and overwhelming. Although I’ve only scratched the surface of p5.js, I can already tell that it will enable me to create interactive webpages, the likes of which I never knew I could code myself! Having a creative website to illustrate the work I will do in this program will certainly help my endeavors. I can see how javascript will make it possible to have a unique online presence.