Skip to main content
Public

Share visualization

Loading preview…

Untitled Visualization

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

Viewing a saved revision (read-only)

Zu9ZsmAj5VOUa5iDnhmDg

Untitled Visualization

0 stars0
CCurran Kelleher
Last edited Nov 27, 2026
Created on Nov 27, 2026
View stargazers

Infinite Cosmic Shape Packing

An effectively unbounded procedural hierarchy, rendered with D3 and SVG.

  • Every node generates 30, 45, 60, or 75 children (five times the preceding branching factor), with random weights from a deterministic seed. Local packing padding is reduced to accommodate the denser arrangement; the 3,500 visible-node cap remains in place.
  • The root is an eight-armed octopus. Descendants deterministically mix octopuses (approximately half) with regular polygons of three through eight vertices. Each parent uses its own inscribed disk for D3 circle packing and camera rebasing, preserving containment and preventing overlap even as shapes rotate.
  • Children fade in based on projected radius. Each shape independently fades out with a smoothstep curve as its projected diameter grows from 85% to 140% of the viewport's longer dimension, revealing the starfield without fading its descendants. Offscreen and tiny circles are culled; the layout cache and visible SVG node count are bounded.
  • The camera rebases into a child when the viewport fits inside it, and returns to its parent when zooming or panning out. This avoids accumulating a huge global scale.

On load the camera automatically flies into the largest child at each level, using a damped velocity controller with capped steering and a maximum logarithmic zoom rate of 0.23 per second. The first pointer, touch, wheel or keyboard interaction with the SVG stops autopilot for the remainder of the session; reduced-motion preferences disable autopilot at startup. Drag to pan, pinch or scroll to zoom, double-click to zoom in, and click a shape to highlight it. Keep zooming into shapes to discover more levels. There is no configured tree depth limit. Zooming into empty space has a numerical guard; a single gesture also has a generous finite scale range that resets at gesture end. A stationary background of 240 seeded stars twinkles asynchronously, independently of the camera, with reduced-motion support. Six shared radial nebula gradients create bright cores, blue, violet, cyan and magenta midtones, and dark rims on a deep-space background. A gentle 28-second hue oscillation keeps the cosmic palette moving. The hue animation does not recompute the layout. Children orbit their parents together at alternating signed angular velocities by depth, with seeded speed variation from 0.26 to 0.40 radians per second in magnitude (twice the preceding speed). Camera rebasing uses the same rotated coordinates, and autopilot tracks moving targets. Rotation continues after manual camera takeover; both rotation and hue animation respect reduced-motion preferences.