🌍 Public
Viewing a saved revision (read-only)
e9847246570f464f9dddd936f5999a74
Ecosystem Simulation
This animated ecosystem simulation visualizes predator-prey dynamics among three interacting species: plants, herbivores, and carnivores. Using the HTML5 Canvas API with `getContext('2d')` and `requestAnimationFrame`, the simulation renders colored circles representing each organism as they move, consume, reproduce, and die. Population statistics update in real-time, demonstrating natural population oscillations as each species' survival depends on the abundance of others.
AI-generated description