The past few weeks I kept running into problems that I thought it could work this way but it didn’t. I guess it’s because I didn’t completely understand the logic of the code. So I always looked for the code in materials on the website and compared it with what I wrote, to find out why mine wasn’t working.
For the sketch I wanted to make an image of the moon and reflection. I use random to make the lines look like water ripples.
While coding the for loop of water, I first code x position of the lines and then y, and I found they were neatly aligned vertically, not the effect I wanted. So I changed the sequence of the two for loop to make the lines more messy and to create the visual of water fluctuation.