Skip to main content
100%

force sim. along one axis w. bounds

✓ Published0🌍 Public
PPatrick Wojda
Last edited May 20, 2019
Created on May 17, 2019

Two side-by-side groups of seven circles demonstrate a one-dimensional force simulation. Black circles show the initial positions, while red circles show results after 100 ticks of a d3.forceSimulation with a d3.forceManyBody repulsion. A custom box_force constrains vertical movement to the SVG bounds while holding the x-coordinate centered. The simulation runs synchronously without animation, and each circle has a radius of 20 pixels, rendered as SVG elements in a 300x350 viewport.

AI-generated description

Built with blockbuilder.org

mit Licensed

Similar vizzes