Skip to main content
100%

thing 0001

✓ Published0🌍 Public
FFrissAnalytics
Last edited Sep 25, 2018
Created on Sep 25, 2018

A word rendered as text is represented by hundreds of small squares that drift randomly across the screen before settling into the letterforms. The visualization rasterizes the word "enj" onto a hidden canvas using `fillText` and `getImageData`, sampling pixel coordinates as target positions. Each square is a `<rect>` whose position is animated by `d3.forceSimulation`, using `forceX`, `forceY`, and `forceCollide` to move particles toward their targets while preventing overlap. The color and stroke width vary with distance from the center, drawn on both SVG and canvas elements using D3 v4 and the `d3-scale-chromatic` color scale.

AI-generated description

thing 0001

playing with rasterizing font using techniques linked below.

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>

forked from <a href='http://bl.ocks.org/enjalot/'>enjalot</a>'s block: <a href='http://bl.ocks.org/enjalot/d5ee7ee1bb8dcbbdbfb0ecd1480aa640'>thing 0001</a>

mit Licensed

Similar vizzes