A while ago I've written some code to randomly create galaxies from specific arguments and types (for example ellipses, spirals, arcs).
This demo visualizes some example result using WebGL.
Additionally to it's position, each star within the galaxy has a random heat and size (see
Wikipedia: Main Sequence).
You can use the controls below to change the visualization of the stars (color model used, texture & scaling) and you can rotate & zoom the view with your mouse.