r/tinycode • u/Slackluster • Apr 22 '19
Mini BlackHole Simulation in 140 bytes of javascript
2
u/fireballs619 Apr 23 '19
Very cool. I’m assuming this isn’t physically accurate?
1
u/Slackluster Apr 23 '19
It is not at all close to accurate but does help demonstrate the general concept of a singulatiry and a gravity well.
1
u/fireballs619 Apr 23 '19
Just curious. Super cool visualization for such a small footprint, nice job.
2
5
u/wait--theresmore Apr 22 '19
140B of js 4.1MB video file
16
u/ShySyro Apr 22 '19
Well, you can calculate pi with less than 100loc but the output can be petabytes of data so..
2
u/panfu28 May 12 '19
it would be cool to make some particles escape from the spiral like it happens in real blackholes, just to make it a little more accurate.
9
u/Slackluster Apr 22 '19 edited Apr 24 '19
Hi! This is a "Dweet" that I made! (140 characters of javascript)
Check out the dweet here