The honeybee waggle dance modeled algorithmically: a location encoded as a vector, decoded by follower bees. An animal embedding. Built with Nature of Code principles.
Machine LearningPhysics Simulationseeding
Seismograph Cloth
A taut verlet cloth pinned along its border, struck by a week of real earthquakes so global seismicity replays as ripples. From The Nature of Code, Chapter 6: Physics Libraries.
Physics Simulationseeding
River Tree
A real dendritic river network from OpenStreetMap around the Colorado-Green confluence, drawn by waterway class. From The Nature of Code, Chapter 8: Fractals.
Fractal GeometryGeospatial Mappingseeding
Tide Harmonics
Measured tide height at San Francisco with a two-constituent harmonic model (M2 plus S2). From The Nature of Code, Chapter 3: Oscillation.
Physics Simulationseeding
Wind Riders
Neuroevolution: neural steering controllers evolved by a genetic algorithm to cross a real wind field on a fuel budget. From The Nature of Code, Chapter 11: Neuroevolution.
Evolutionary AlgorithmsMachine Learningseeding
Rain Perceptron
A single-layer perceptron classifying rain from daily humidity and pressure over a year of New York weather (Open-Meteo archive). From The Nature of Code, Chapter 10: Neural Networks.
Machine Learningseeding
Capitals Tour
A genetic algorithm minimizing a closed tour of 22 world capitals by great-circle distance, an instance of the traveling salesman problem. From The Nature of Code, Chapter 9: Genetic Algorithms.
Evolutionary Algorithmsseeding
Hornet Invasion
A cellular automaton calibrated to real Vespa velutina occurrence records spreading across Europe from 2013 to 2025 (GBIF). From The Nature of Code, Chapter 7: Cellular Automata.
Agent-Based Modelsseeding
Sky Boids
A Reynolds boids flock steering to avoid real live aircraft over the Alps (OpenSky Network). From The Nature of Code, Chapter 5: Autonomous Agents.
Agent-Based Modelsseeding
Air Plumes
Particle emitters whose emission rate is set by real PM2.5 concentration in three cities (Open-Meteo). From The Nature of Code, Chapter 4: Particle Systems.
Agent-Based ModelsFlow Fieldsseeding
ISS Ground Track
The International Space Station's live ground track, a body in gravitational orbit projected onto the Earth's surface. From The Nature of Code, Chapter 2: Forces.
Physics SimulationGeospatial Mappingseeding
Wind Field
Streamlines integrated through a real forecast wind field (Open-Meteo), sampled on a grid and bilinearly interpolated. From The Nature of Code, Chapter 1: Vectors.
Flow Fieldsseeding
Earthquake Walk
A random walk with step lengths drawn from real earthquake magnitudes (Gutenberg-Richter distributed), producing a Levy flight. From The Nature of Code, Chapter 0: Randomness.