3 ms·
Someone made an ASCII art bonsai generator in bash, so I ported it to a few lines of JS. Then I made it animate the growth :) http://web.archive.org/web/202005
by andai 2y ago
Someone made an ASCII art bonsai generator in bash, so I ported it to a few lines of JS. Then I made it animate the growth :)
http://web.archive.org/web/20200512153032id_/https://andai.tv/grow/ http://web.archive.org/web/20200512153032id_/https://andai.t...
There's no "restart" button, but each refresh produces a unique tree.
- a12k 2y agoJust a caution for future clickers: This caused my mobile browser to spawn a bunch of print windows and was pretty annoying to exit.
- andai 2y agoWhich browser are you using? It seems to be because I named the function that displays output print(). But it should shadow window.print(), and in most browsers it does, so I don't know what's going on! (At any rate, this is a web archive snapshot from 2020 so I can't update the code!) Could you try a different browser? It's not much, but it might make you smile :)
- andai 2y agoHere, I renamed the print function, that should fix the bug. https://jsbin.com/seraputuve/edit?output https://jsbin.com/seraputuve/edit?output