DOM-aware physics
last updated: Sep 06, 2024
https://threadreaderapp.com/thread/1831783365483360539.html
Elad Bezalel walks through how they implemented falling blocks that bounce off DOM elements:
- apply CSS filters to increase contrast
- snapshot the page with modern-screenshot
- includes a plug for this library as particularly excellent.
- I currently use d3-svg-to-png in nbastats, I should give modern-screenshot a try
- trace the dom with this WASM version of Potrace
- use matter.js for the rigid-body physics