I was wondering what would happen if you played Newton Wars (aka Gravitational Combat), but had a full visualization showing you which target/planet you would hit when shooting in that direction with that force!

So I wrote a #glsl shader to figure that out, and it's really pretty! 

This is how it works: If you hover over a red pixel in the diagram, you can be sure you'll hit the red planet! The lightness is how soon you'll hit it.

Here's a similar diagram for where a particle would end up if you just drop it at that point!
And here's a version of the Newton Wars setup with moving planets, as suggested by @RedGlow!
@blinry woah, cool! Is this as fast as your GPU can render it in real time?
@blinry hypnotic O_O there's something really '70s about it!
@blinry What if you do that with relativistic formulas and very high speeds?
@blinry @RedGlow if you reduce the size of the planets it'll probably look more and more complicated. Rather like with magnets: https://fractalfoundation.org/OFCA/magpendattractor.jpg
@blinry @RedGlow @jwz, call your office... :-)
@blinry I'm quite sure you know it, but for anyone who doesn't, this coloring technique is the same principle behind the iconic Mandelbrot fractal: https://www.youtube.com/watch?v=y9BK--OxZpY
The meaning within the Mandelbrot set

YouTube
@blinry very cool idea and beautiful to see! would love to see what happens to the image as you move the planets :D. chaotic systems are really great :O
@blinry
Now do that with a spinning banana and gorillas on each planet
@blinry One day back in about 1995, I was bored and decided to write a small DOS program to render VGA graphics for a planet orbiting a sun.
Rather than simply plotting a circle and rasterizing it over time, I wrote an actual Newtonian physics equation solver for the gravitational pull, and chose mass and distance and angular velocity for the bodies.
I basically tuned the params by binary chop and intuition until I had it semi-stable for a minute, and declared victory !
@blinry the dotted line is the path of the force/ particle?
@grant_h Of the particle, yup!