Skip to main content
Public

Share visualization

Loading preview…

Fork of Fork of Fork of Circles with D3

vizhub.com

Shared links may look like this on X, LinkedIn, Slack, and Discord.

Before sharing, review the publishing checklist.

Choose how to deliver this visualization

LinkedIn caption

LinkedIn may not keep text supplied by the share sheet. Copy the caption and paste it into the post if needed. You can tag the VizHub company page when posting.

More options

Embed on a websiteCopy iframe embed code
Download & exportPNG, HTML, source ZIP

Fork of Fork of Fork of Circles with D3

0
BBismark Kofi Owusu Sarfo
Last edited Aug 27, 2025
Created on Aug 27, 2025

This animation shows a network of colorful circles bouncing and colliding within the viewport, with each circle containing a simplified African map outline and smaller star shapes that move independently. The visualization uses D3 v7 to render and update SVG paths via smooth frame-by-frame animation, while custom JavaScript functions handle boundary detection, collision resolution, and velocity reflection for both circles and stars. The code defines geometric path data for the continental shapes and star polygons, then manages the physical interactions entirely through manual position updates rather than D3’s physics simulation APIs.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed