NOC week1 : Random Walk
This is the first assignment in the class which we learn about Vector and Randomness in JavaScript in P5 and how to play with it.
I followed Dan’s Levy flight video and was playing with vector and random that we’ve learned but kinda ended up like the particles that I’ve made by accidentally playing with mapping the distance of the vector position ( pos and prev ) much more than the Levy flight random itself since the particles I got is kinda gave the sense of spray brush paint on canvas to me.
Anyway, after that I noticed that when the random ran it always went out of the canvas and it took awhile for the random walk to come back so I try to control the random walk into the canvas are by the if statement
The sketch gave me very weird cross canvas lines which is kinda look cool to me even though I don’t understand why and what was happening there (haha) 😂
Here is the link to the sketch : https://editor.p5js.org/Jay_a_n/sketches/ax5VREK4