I was trying to make something based off the famous 10 Print concept (example link here), which is extremely elegant in its simplicity, but I wanted to introduce some color. The way I figured I could introduce color to 10 Print was by making them as varied rectangles instead of lines. However, I ran into some struggles with using translate and rotate in a loop. Like a lot of struggles. Here is a link to my sketch.
This is also not the first time I’ve struggled with translate and rotate in .p5js. It’s extremely counter-intuitive to me. Quick recap: in order to rotate an object in P5, you have change the entire way the program interprets coordinates. It gets really confusing really fast. Anyway, here’s my attempt (and here is a link):
As you can see, it’s not as organized or graceful as my first example, or as 10Print. I hope to be able to improve this design in the near future. Always looking forward to more progress.
One of the requirements of our assignment this week was to use a for loop. While I did not use the standard for loop format of “for (i=0; i < 20… etc.),” this program does contain two loops. I made a version of my program using a proper for loop for posterity’s sake, which you can find at this link, but it wasn’t necessary.
UPDATE: I had some success (kind of) after class a lengthy class discussion:
In other news, I photographed a stink bug’s face this week that I really like, so I’m going to share it here, just because I can.