Description
By altering the seed, star density, and maximum magnitude of the stars, you can create an infinite number of different star fields. The only limitation is the limits of your system capacity.
The program uses a high definition rendering technique that essentially uses 96 bits per pixel (32 bits per color value). Stars are initially generated as single-pixel points of color, and then are bled across the sky to create the glow of a star.
There are no comments in the source code, which means the fun is left up to you to figure out what it does.
I would suggest adapting the code for use in a sky box texture generator in a space-based game.