Skip to main content
100%

Particles

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

Hundreds of small, colored rectangles converge into the word “FRISS” before scattering apart. They then reform and slosh around as the mouse moves, creating a gooey, viscous effect. The code rasterizes text by drawing it to a Canvas and using `getImageData` to identify pixel locations as target points. A `d3.forceSimulation` with `forceX`, `forceY`, and `forceCollide` animates the elements, while an SVG filter applies the gooey blur and color matrix.

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