Hertzsprung-Russell diagram of the same track (hot to the left). The star on the left is drawn to scale on a log radius axis.
running...
The 3D view
What is added to the 2D page: the star is a sphere whose radius is drawn on a log scale, r_scene = 2.6 (log10 R/R☉ + 4.8) / 8.1 (the Sun is the dashed ring), tinted by the colour of a black body at Teff and textured with a Blender-baked granulation map. After the planetary-nebula phase a baked filament shell expands (schematic, 20 km/s-type growth) and fades as the white dwarf cools. For a neutron star the scene shows a small sphere with polar jets and for a black hole an event-horizon sphere with an accretion disk: these two are not to scale (their true radii of about 10 km and a few km are far below the diagram's range). The tint colour is an approximation of blackbody colour, not a spectral calculation. All numbers (L, Teff, R, age, lifetimes) come from the same assets/core.js as the 2D twin; an extra check below inverts the drawn 3D radius back to R and confirms L = 4 pi R^2 sigma T^4 on the displayed state.
The science
Main sequence. Zero-age luminosity and radius use the Tout et al. (1996) analytic fits for solar metallicity (Z = 0.02), e.g. L = (0.397 M5.5 + 8.53 M11)/(0.00026 + M3 + 5.43 M5 + 5.56 M7 + 0.789 M8 + 0.0059 M9.5). The luminosity then drifts upward with a Gough-type law calibrated on the Sun.
L = 4 pi R^2 sigma T^4 t_MS = 0.9 t_BGB (t_BGB: Hurley et al. 2000 fit; the 0.9 factor is this lab's simplification, Hurley et al. use about 0.95 for Z = 0.02, and gives ~10 Gyr for the Sun)
L(x) = L_ZAMS / (1 - 0.626 x), x = t / t_MS
Giant branches. A shell-burning giant has a core mass-luminosity relation L = 2.3e5 Mc6 (RGB; Refsdal & Weigert 1970 type, approximate) and L = 5.9e4 (Mc - 0.495) (AGB; Paczyński 1970). The core grows by burning hydrogen at the shell:
dMc/dt = L / (X * 0.007 c^2), X = 0.7
RGB time: (Mc0^-5 - Mc^-5) / (5 k) (closed form, checked against RK4)
Remnants. White-dwarf mass from the initial-final relation Mf = 0.0873 Mi + 0.476 (Kalirai et al. 2008, ApJ 676, 594), radius from the Nauenberg mass-radius formula, cooling from Mestel L ~ t^(-7/6). Stars of 8 M☉ or more end as a neutron star (about 1.4 M☉) or, above about 20 M☉, a black hole; both lie far off the diagram (Teff ~ 106 K or no surface).
Honest simplifications. Single, non-rotating, non-interacting stars at Z = 0.02; the subgiant, Hertzsprung-gap, horizontal-branch, planetary-nebula and supernova stretches are schematic paths between the physically computed end points; mass loss is folded into the initial-final relation; no blue loops, thermal pulses or binary effects. Use it to see the structure of stellar life, not to date a real cluster.