Description: A program to visualise the relative strength of gravitational fields. The result is surprisingly beautiful.
Every pixel gets the color of the planet that has the strongest gravitational attraction on an object at that pixel. Based on Newtown's law of universal gravitation.
Languages / Dependencies: Mostly written in Python 3.8.5, uses the numpy, PIL, random, math and pyopencl libraries. The kernel is written in OpenCL (C++)
Clone the repo and edit the settings in field.py until the desired effect is achieved. Run the script, a file called grav_field.png will appear in the folder.