4 ms·
Let me know if you do anything cool with it! I just got text working, which is very exciting. It was surprisingly easy, too. 1) Render text to a high resoluti
by fogleman 6y ago
Let me know if you do anything cool with it!
I just got text working, which is very exciting. It was surprisingly easy, too.
1) Render text to a high resolution 1-bit array using PIL
2) Compute the distance transform using scipy
3) Do some index fiddling to map it into world space, and it's done!
Even works with unicode: https://twitter.com/FogleBird/status/1361523405821005824 https://twitter.com/FogleBird/status/1361523405821005824