This is a collection of p5.js sketches that I’ve made over the years. They’re mostly experiments and tools but you’ll also find some doodles and a drawing or two. Every sketch is open source and includes a link to the p5.js editor where you can read and play with the code.
the classic flocking algorithm
squares with circles in them. also the circles move
a flow field but with long squares
are you ready for a mess of colors?
spinning a line around and seeing what happens
an experimental visualizer for chess games
the sketchiest lines you'll see on this site
a tiny terrain generator using perlin noise
a simple tool to explore how bitboards work