This was my old submission for blot, reimagined and recoded: First using p5js (CPU), then ported to run on the gpu using webgl. It works essentially as a kind of physics simulation. You define a 3d mathematical surface (or SDF), and the simulated 'walkers' walk down the slope.
For an example of this, you can view a surface here: https://www.desmos.com/3d/xkddysguta And if you replace the sdf function in Walkers GPU with this:
float sdf(vec2 pos) {
float scale = 30.0;
return sin(pos.x * scale) + cos(pos.y * scale);
}
You can see how the walkers traverse from the peaks (the dark areas) to the valleys.
- Walkers GPU - The GPU Port
- Walkers CPU - Original rewritten p5js code (CPU)
- Walkers Auto - p5js code (CPU) which automatically cycles through different sdf functions and color schemes
To run locally:
- Clone or download the repo
- Run the project with some form of server (I use Five Server)
- Navigate to https://{ip}/walkersGPU/





