Python

Sunday, May 19. 2002

Saturday, May 18. 2002

Galaxy Generator

This Python script generates a 3D galaxy from a number of parameters and stores it in an array. You can modify this script to store the data in a database or whatever your purpose is. THIS script uses the data only to generate a PNG with a 2D view from top of the galaxy.

The algorithm used to generate the galaxy is borrowed from Ben Motz The original C source code for DOS (including a 3D viewer) can be downloaded here: http://bits.bristol.ac.uk/motz/tep/galaxy.html

Download: galaxygen.py