I'm constantly surprised that SVGs aren't more popular on the web for small, scalable content. You see them around (Github's contributions graph, the Guardian's crossword puzzles, etc) but they're still quite unusual despite having lots of advantages.
I made a similar thing years ago using a WebGL shader and a PNG ... https://codepen.io/onion2k/full/peeVNd/