

For this week’s sketch, I wanted to create a repeating pattern using loops. After exploring a few ideas, I chose mushrooms because I could build them with simple shapes while still adding interesting details. I used a mushroom illustration as a reference for the red cap, pale stem, spots, and thin lines underneath.
One challenge was figuring out how to move the whole mushroom without separating its parts. Instead of giving each shape a fixed position, I placed everything relative to x and y. For example, one spot is drawn at x - 19, y - 9. This keeps all the parts together wherever the mushroom appears. I then used a for loop to draw 20 mushrooms, with random() choosing each mushroom’s position.
One challenge was figuring out how to move the whole mushroom without separating its parts. Instead of giving each shape a fixed position, I placed everything relative to x and y. For example, one spot is drawn at x - 19, y - 9. This keeps all the parts together wherever the mushroom appears.I then used a for loop to draw 20 mushrooms, with random() choosing each mushroom’s position. During the process, I got confused about the difference between a static pattern, an animation, and an interaction. I tried arranging the mushrooms along a curve using sin(), but a curved arrangement does not automatically move. Adding frameCount made the mushrooms move continuously. I wanted the mushrooms to change positions once when I clicked, then stay still. I used noLoop() to stop continuous drawing and called redraw() inside mousePressed(). This helped me understand that repeating shapes with a loop and repeatedly updating the screen are two different things.