https://editor.p5js.org/jx2503/sketches/FnOhg_Z1h

This time, I would like to experiment with the random walker example shown in the random chapter and I have these ideas in mind:

  1. The color of the walkers should keep changing to make it visually more appealing
  2. Add a “glowing tail” effect to the walkers
  3. Experiment with the blendMode() function

Here are some of my iterations:

2.gif

1.gif

4.gif

5.gif

In the last version, I used the blendMode(HARD_LIGHT) to achieve the ideal result that there’re some dynamic and neon-like effect in the walker’s tails.

Here’re some tutorials/references I found most useful: https://natureofcode.com/random/#example-01-a-traditional-random-walk

https://editor.p5js.org/natureofcode/sketches/5C69XyrlsR

https://p5js.org/reference/p5/blendMode/