Skip to main content
100%

Particle viSFest

✓ Published0🌍 Public
FFrissAnalytics
Last edited Oct 4, 2018
Created on Oct 7, 2017

A grid of small colored rectangles forms the word “viSFest,” with each rectangle initially scattered across the black canvas before a force simulation pulls them toward their target positions. Moving the mouse creates a wrecking-ball node that repels nearby rectangles, causing the text to slosh and deform before settling back. The code uses d3.forceSimulation with forceX, forceY, and forceCollide, while d3.scaleSequential with interpolateRainbow colors each rectangle based on its x-coordinate. The initial text shape is rasterized via Canvas getImageData, and rendering uses SVG rect elements without the gooey filter.

AI-generated description

Move your mouse to slosh the text around.

The SVG filter comes from Nadieh Bremer's great blog post about making gooey effects.

The idea of drawing text on a <canvas> element and using the bitmap to identify points within the text came from Toph Tucker's block that reverse-engineers FizzyText.

forked from <a href='http://bl.ocks.org/armollica/'>armollica</a>'s block: <a href='http://bl.ocks.org/armollica/06a202c9f7df191ace8a1f97e33ffb97'>Slimy Text</a>

forked from <a href='http://bl.ocks.org/enjalot/'>enjalot</a>'s block: <a href='http://bl.ocks.org/enjalot/f973a941606aa38fed321fbce0c8bd7f'>Particle viSFest</a>

mit Licensed

Similar vizzes