Javascript version has been extended with colouring and fading (Zeger Hendrikse)
Core / Bulge (Central Region): yellow-white to reddish color, since the core is
populated mostly by older stars (Population II), which are cooler and more evolved.
Mid-to-Outer Disk (Arms): bluish-white color, because the spiral arms host young, hot,
and massive stars (Population I), which are blue and short-lived. Also, star-forming regions
and nebulae contribute a diffuse glow.
Outer Halo: dim red to transparent, as this region contains very old stars and
globular clusters, often too dim to be noticeable.
On this site, you can also find a live demo of a way more advanced 2D spiral galaxy simulator
that is based on the density wave theory (on GitHub →
Galaxy renderer).
It is written by Ingo Berg in Typescript.
Click on the image below to activate this demo!
Click on the image to play with a live demo of a way more advanced 2D spiral galaxy renderer!
About spiral galaxies
Hubble distinguished between elliptical galaxies and spiral galaxies.
The elliptical galaxies were rated based on their eccentricity and given identifiers ranging from E0 to E7
with the eccentricity increasing towards E7.
The type S0 is an intermediary form of galaxy that marks the transition to the spiral galaxies.
Spiral galaxies were separated into two categories on their own. The spiral galaxies and (Sa bis Sc)
and the barred spiral galaxies (SBa bis SBc). —
Rendering a Galaxy with the density wave theory
Classification of galaxies according to Edwin Hubble; Courtesy of: Ville Koistinen (CC BY-SA 3.0)