Brief:
Rain, my favorite color green, and small creatures
Inspiration
This is a picture I took in Sanya. I remember the beautiful colors of the sky, and the tiny foam on the beach after the waves have receded.
So at first, I want to combine those colors, to paint the waves with color, and exploring how its trace looks like. This is my first draft:
“what is it?” “a tooth brush??????😅”
Two reason why I failed:
- I do not study the noise curve carefully, to mimic the wave like what I’ve drawn, the density (frequency) should be higher.
- I make the stroke too thick
But I have reasons to do so.
Look at the sketch here and here, if I choose not to make the strokeWeight larger, then it looks like just a static curve move forward.
How to make it not that rigid? I decide to divide them into 10 groups, each of them follows the same frequency, but the starting point of the Perlin noise curve is different, so that I can ensure the variation.
So, I get this. sketch here(blue wave)
Because of the failure before, I give up the idea to have different colors for the wave, instead, I think this wave also looks like a meadow blown by the wind. I want to make a class of certain particles so that when I throw something to the ground, there will be a ripple(the very simple sample for ripple I created).
When developing this sketch, I meet so many problems. Here I’d like to elaborate on one of them.
When I first started, I wanted to create a sense of space using near and far, so I used map to determine the radius of the circle, which is smaller when y is close to 0. However, since I use mouseY in the map, and this value is keeping being updated, if I move the mouse, the radius will change accordingly.
So I create a global variable “originY”, and assign the mouseY’s value to it using function mousePressed. In that case, the mouseY’s value will only be given once each time I pressed my mouse, and the radius will not change even as I frantically wiggle the mouse ;-D
I solved part of my questions. However, the ripple keeps appearing and right know I do not know how to insert a class into another class. So, I also give up this idea.
My friend reminded me that the wave looked like the wisteria waterfall we learned about earlier, so I decided to create a hazy, dreamy theme. (Till now the theme changes a lot ahh😇)
So I started to have class. To aviod the problem that it may keep generating things when my mouse is still pressing, I also use function mousePressed to solve that.
And to let the drops appears less frequently, I use random to lower its possibility (to around 0.3 maybe?).
And apply the vector to make the objects fly around.