Skip to content

A program to visualise the relative strength of gravitational fields. The result is surprisingly beautiful.

License

Notifications You must be signed in to change notification settings

De-Zwaan/Gravitational-field

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gravitational-field

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++)

Possible results:

How to run

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.

About

A program to visualise the relative strength of gravitational fields. The result is surprisingly beautiful.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published