Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Ecosystem Simulation

Public visualization

Viewing a saved revision (read-only)

e9847246570f464f9dddd936f5999a74

Ecosystem Simulation

0 stars0🌍 Public
NNita
Last edited Apr 1, 2025
Created on Apr 1, 2025
Forked from HTML Starter

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