For use in a space game. The galaxy shape is approximated by a blob in the center with two spiral arms tacked on. Different spiral-arm galaxy styles can be generated using the slider. This version does not yet include other types of galaxies such as globular clusters although that should be possible by increasing the blob component and reducing the arms. https://phosphorus.github.io/app.html?id=119933253&turbo=false&full-screen=true
Code by pixelisator - I remixed it to save the point cloud in a way that looks more like a small galaxy. Also now uses Layzej's Gaussian random generator. Uses the formula r=at for a spiral using polar coordinates. It could do with a better approximation but this is OK as a proof of concept. Also I'm tempted to add depth cueing with star size and shade, and maybe a perspective rather than isometric view.