Blobbing Particles II
Two layers of independently moving particles drift and collide on a dark field, their soft radial-gradient discs merging into blobs within each layer while layers remain distinct. The visualization uses D3.js v4 with a custom `distanceLimitedVoronoi` API to compute clipping paths for each particle, constraining its drawn circle to its Voronoi cell. Particles’ velocities are updated via a simple random walk with damping, and rendering is entirely SVG, with each circle clipped by its cell’s path and a radial gradient applied for a soft edge.
AI-generated descriptionThis block is a continuation of a previous block, and a recreation :
- apply radial gradient to circle, and clip each circle with a distanceLimitedVornoy cell
- use 2 layers: cells of the same layer are blobbing/merging thanks to distanceLimitedVornoy technique; cells of distinct layers are overlapping
Compared to the previous block, the radial gradient is applied to basic circles. As circles have constant radius/width, the radial gradient no longer flickers. Also, each circle is clipped with its respective distanceLimitedVoronoi cell, leading to the expected blobbing effect.
Acknowledgments to:
- <a href='https://d3js.org/'>D3.js</a> (v3.4)
- <a href='http://blockbuilder.org'>blockbuilder.org</a>