Shogo Oshima

Web Developer

Sketches
GitHub X

#181Force-directed Graph

A few hundred nodes wired into a modular random graph relax live on the GPU: an all-pairs inverse-square repulsion fights Hooke springs along every edge, so the initial random tangle untangles into a stable organic layout, then a periodic kick perturbs it so it re-settles forever. Edges glow amber with spring tension and nodes brighten by degree; pointerDown yanks nearby nodes toward the cursor.