In this coding challenge, I simulate a "random walk" with the p5.js library. This video is part of the course Nature of Code at ITP, Tisch, NYU.
More info about random walks from Wikipedia.
The Reference page for the random function of p5.js library.
The Reference page for the floor function of p5.js library.
Syllabus for Part 1 of Nature of Code: "Physics and Animation" at ITP Spring 2017
Random walker using vectors to vary the distance of each step, and implementing Lévy Flight.
Live Stream with Random Walk
- Editing
by Mathieu Blanchette
- Animations
by Jason Heglund