nagomi
Nagomi is an interactive, procedurally animated koi pond that runs in your browser. The fish swim on their own, change depth, react to nearby fish, and gather around the water when you click or tap. Ripples, currents, lotus leaves, changing weather, and optional river sounds help the pond feel alive.
The fish are not following a recorded animation. Instead, each fish uses a few simple rules to decide where to swim, how quickly to turn, and how its body and tail should bend. The program calculates these movements continuously while you watch. This is called procedural animation: behavior is created in real time rather than played from a fixed video or set of frames.
New to procedural animation? Read How Nagomi works.
https://github.com/user-attachments/assets/34549f7d-41cf-4cf6-af0a-95074bc631d2
Run
npm install
npm run devBuild
npm run build
npm run previewTune
Edit src/config.ts to change fish counts and sizes, koi colors, water colors,
lotus leaves, flowers, and shadow strength.
Controls
- Click or tap to call the fish.
- Press
Spaceto scatter them. - Press
[or]to change the fish count. - Press
Dto show the procedural spine. - Press
Hto hide the interface. - Press
Rto reset the simulation.