// 03. sketches
Interactive sketches.
Algorithms, fractals, and games — built in the browser with p5.js.
I build these part-time whenever I find an interesting concept in the world of mathematics or physics that I want to explore visually.
A* Pathfinding
→An interactive graph traversal simulation. Draw walls to trap the algorithm, and watch A* optimally recalculate the shortest route to its goal.
Boids Swarm
→An elegant flocking simulation. Watch complex, organic swarm behaviors emerge from three simple steering rules: Separation, Alignment, and Cohesion.
Double Pendulum
→A simulation of chaos theory. Two pendulums attached end-to-end follow strictly deterministic physical laws, yet rapidly produce completely unpredictable, mesmerizing movements.
Mandelbrot Explorer
→Click to zoom into the infinite complexity of the Mandelbrot set. Colour bands map escape-time values to a vivid palette.
Recursive Tree
→An interactive demonstration of mathematical recursion. Move your mouse to dynamically alter the branching angles and scale of a continuously generating fractal structure.
Snake
→Classic Snake reimplemented with smooth p5.js rendering and a doubly-linked list for efficient tail tracking.
TSP Visualiser
→Watch nearest-neighbour and brute-force algorithms solve the Travelling Salesman Problem in real time across randomised node maps.