Chain
Leander Herzog · 2023
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
#000000#14151f#f19648#f5d259#f55a3c#063e7b#ececd1#555555#cccccc#ffffff#90ee90#0e0f19#aaaaaa#eeeeee#888888#444444#bbbbbb#ffa500 #000000#c2c2c2#dadada#a5a5a5#818181#606060#3a3a3a#1a1a1a Algorithms
- Physics Simulation primary · classification: LLM
- Particle System · classification: LLM
Details
Sources
- IPFS 1p.infura-ipfs.io ↗
- Source verse.works ↗
Related works (by shared algorithms)
Last updated 2026-07-16