Chain

Leander Herzog · 2023

Sample output of Chain

Interactive realtime simulation js + webgl, dimensions variable

How it works

Matter.js Composites.chain of circle bodies with constraints continually cut()/fix() and Engine.update, drawn as WebGL point sprites.

The core is "a chain simulation by a physics engine". With Matter.js's Composites.chain it strings circular bodies together like beads, and updates the chain, linked by constraints, moment by moment with Engine.update. The way the chain hangs, sways and tangles under gravity and tension becomes the picture as it is. What generates the dynamism is the repetition of operations that cut and re-fix the chain partway. By this, the chain repeatedly fragments and recombines, and the form is restructured moment by moment. The drawing renders each body as a WebGL point sprite in pointillist fashion, and the physical trajectory is visualised as a string of grains. The initial placement and the timing of cutting and joining change per token, so a range of behaviour arises from a neat catenary to a complexly tangled mass.

Palette

From the generator script · 18
#000000#14151f#f19648#f5d259#f55a3c#063e7b#ececd1#555555#cccccc#ffffff#90ee90#0e0f19#aaaaaa#eeeeee#888888#444444#bbbbbb#ffa500
Extracted from outputs · 8
#000000#c2c2c2#dadada#a5a5a5#818181#606060#3a3a3a#1a1a1a

Algorithms

Details

Runtimes
Browser (Canvas / 2D)
Movement
Long-form Generative Art
Medium
Real-time software
Relations
released-on → verse
On-chain
ethereum · 0x1550cbc1de5ef1b330b51f8303c4ecfdd70b9ac6

Sources

Related works (by shared algorithms)

Universe of Water Particles
teamlab · 2013
Diggly Collects All
dca · 2025
send/receive
snowfro · 2025
Melancholic Magical Maiden
emi-kusano · 2024
Blooms
cory-haber · 2024
Fantasía
alejandro-campos · 2024
Cerebellum
laya-mathikshara-santiago · 2023
Scatter Process[or]
kelly-milligan · 2023

Last updated 2026-07-16