Visualizing the beauty in physics and mathematics
🔧 Original galaxy_3d_Medium.py by Lee Vaughan
⭐ The (theory behind the) code is thoroughly explained in his accompanying article
👉 This spiral_galaxy.html page is a port to JavaScript and Three.js
🔥 JavaScript version has been extended with colouring and fading (Zeger Hendrikse)
👉 Core / Bulge (Central Region)
Warm yellow-white coloration due to the extremely high stellar density in the galactic core.
Although the core is dominated by older stellar populations, the combined light of many stars produces a bright, smooth, slightly warm appearance rather than distinctly red individual stars.
👉 Spiral Arms (Mid Disk)
Bluish-white coloration representing regions of active star formation.
The spiral arms contain young, hot, massive stars that appear brighter and more point-like, producing a sharper, higher-contrast structure compared to the core.
👉 Outer Disk and Fading Regions
Gradually decreasing brightness and visibility with increasing distance from the center.
Stars become sparser and less luminous, causing the outer regions to fade smoothly into darkness rather than forming a distinct, visible halo.
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!
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
Share on: