5.2 Seeking a Target – The Nature of Code

This video explores Craig Reynolds’ formula for Steering Behaviors in JavaScript (p5.js) beginning with “Seeking a Target.” p5.js Web Editor Sketches: πŸ•ΉοΈ Seek: πŸ•ΉοΈ Seek with Sliders (Exercise): πŸ•ΉοΈ Arrive (Exercise): πŸ•ΉοΈ Pursue (Exercise): πŸŽ₯ Previous video: πŸŽ₯ All videos: Links discussed in this video: πŸ”— Steering Behaviors For Autonomous Characters: Other videos mentioned in […]

Continue Reading

Coding Challenge 162: Self-Avoiding Walk

It’s finally time to attempt a Self-Avoiding Walk! In this video, I quickly visualize a simple JavaScript p5.js implementation of a self-avoiding walk. I then tackle the more complex problem of backtracking to find a solution to a space-filling self-avoiding walk. p5.js Web Editor Sketches: πŸ•ΉοΈ Basic Self Avoiding Walk: πŸ•ΉοΈ Self Avoiding Walk with […]

Continue Reading

2.4: random() Function – p5.js Tutorial

In this video, I explore the random() function in p5.js and discuss the concept of “parametric design.” p5.js Web Editor Sketches: πŸ•ΉοΈ Random Square Design: πŸ•ΉοΈ Random House Exercise: πŸ•ΉοΈ Random Points: πŸ•ΉοΈ Painting Exercise 1: πŸ•ΉοΈ Painting Exercise 2: πŸŽ₯ Previous video: πŸŽ₯ Next video: πŸŽ₯ All videos: Links discussed in this video: πŸ”— […]

Continue Reading

2.3: Incrementation Operators – p5.js Tutorial

In this bonus aside, I discuss coding short hand for incrementing variables (“incrementation operators”). πŸŽ₯ Previous video: πŸŽ₯ Next video: πŸŽ₯ All videos: Timestamps: 0:00 Hello! 0:38 What is coding short hand? 1:28 What does += mean? 2:10 What does ++ do? 2:55 But what about minus, times, and divide? 3:40 Let’s confirm this works. […]

Continue Reading