3 ms·
Okay, now you have the frames as glyphs in the font, but how are they going to animate? The most interesting part of the explanation is missing.
by gpvos 3y ago
Okay, now you have the frames as glyphs in the font, but how are they going to animate? The most interesting part of the explanation is missing.
- p4bl0 3y agoI came here to ask the same thing, then saw interroboink's guess in another comment and it seems plausible: https://news.ycombinator.com/item?id=37317687 https://news.ycombinator.com/item?id=37317687
- jansan 3y agoIn the middle of the article you see a line "RUST Full code for character replacement". If you click on that, it will show you the Wasm code. It looks like it uses Wasm to replace a sequence of dots with a glyph from the font, which shows a frame from the animation, similar to ligatures, but using Wasm. You could do the same with storing the svg paths for each animation frame in an array and then using Javascript iterate over and display these paths, but this uses Wasm, HarfBuzz and a font.
- gpvos 3y agoMore importantly, seeing the other comments, it uses those and a keyboard.
- dan-robertson 3y agoThe glyph corresponds to how many (e.g.) dots you have in a row and the author set key-repeat at 30/s and held down the . key.
- gpvos 3y ago...okay, that is less automatic than I was led to expect. I mean, it's still cool, I guess.