Untitled
✓ Published0🌍 Public
This example visualizes a particle system flowing over a map of the United States, where each particle traces a path across the country. It uses d3.forceSimulation with custom forces to drive particle movement, while d3.geoPath renders the geographic boundaries from a TopoJSON source. The particles leave fading trails on a Canvas, creating a dynamic migration-like pattern. The code reads pixel data via Canvas getImageData to constrain particles to landmasses, and employs d3.transition with attrTween for smooth position updates.
AI-generated descriptionMIT Licensed