Skip to main content
100%

box-edges

✓ Published0🌍 Public
11wheel
Last edited Nov 7, 2017
Created on Oct 31, 2017

This example demonstrates a computational process that densely packs a set of progressively smaller squares onto a canvas. Starting from a single edge, the algorithm iteratively adds new squares by placing them adjacent to existing edges, checking for intersections, and splitting overlapping edges into new segments. The visualization updates at regular intervals, with the final layout rendered as a network of black lines. The code uses D3.js for SVG rendering and animation, along with utility functions from the lodash library (`_.sortBy`) and a custom tooltip system.

AI-generated description

Densely laying out boxes

Similar vizzes