Skip to main content
100%

Swarmalator

✓ Published0🌍 Public
FFrissAnalytics
Last edited Oct 5, 2018
Created on Oct 5, 2018

A swarm of colored circles self-organizes into dynamic patterns, with each particle's hue representing its internal phase. The simulation uses `d3.forceSimulation` to integrate pairwise interactions that combine spatial attraction with phase coupling, controlled by adjustable parameters J and K. Colors transition smoothly via an HSL mapping, while an optional temperature mode recolorings particles based on their kinetic energy using an Inferno colormap. The visualization runs on a Canvas element, rendered in real time as the swarm evolves and responds to mouse interaction.

AI-generated description

d3.forceSimulation for https://www.nature.com/articles/s41467-017-01190-3

Observable version: https://beta.observablehq.com/@fil/swarmalator

(See also http://usediscretion.blogspot.fi/2017/01/the-swarmalator.html )

Built with blockbuilder.org

forked from <a href='http://bl.ocks.org/Fil/'>Fil</a>'s block: <a href='http://bl.ocks.org/Fil/2cec616f64cda2cdb0e7302c9b1be3a5'>Swarmalator</a>

mit Licensed

Similar vizzes