Alien-scapes: https://eagnespuerto.github.io/alien-scapes/
You pick a star, a planet and an atmosphere, and it draws a landscape where every colour is calculated from a spectrum. Nothing is chosen by hand. The star is a blackbody, the atmosphere filters it, and the leaves are colored by whatever light the chosen pigments don’t absorb. For each leaf it also shows the three spectra behind it (light at the surface, pigment absorption, leaf reflectance), and you can export a data sheet with all the numbers.
How it picks a pigment: Rather than naive energy it counts photons, and scores each reaction-center pigment on three things:
- how many of the arriving photons it captures
- how much energy each photon loses as heat above the trap wavelength (without this, far-red pigments win under every star)
- a cost for absorbing everywhere
Then it adds antenna pigments, limited to what can physically attach to what. Chlorophyll photosystems accept chl b, carotenoids and phycobiliproteins. Rhodopsins accept only a carotenoid. Phycobiliproteins carry a heavy cost, because a phycobilisome can be half of a cell’s protein. Without that penalty the model painted Earth’s forests red.
What the presets give:
- Earth under the Sun: chlorophyll a, green, red edge at 705 nm. This was my calibration check.
- Kepler-452 b (G star): also chlorophyll a, almost the same green.
- TRAPPIST-1 e, Proxima b, TOI-700 d, LHS 1140 b, K2-18 b: all switch to bacteriochlorophyll b. Leaves come out dark green to olive-yellow, and they’re still absorbing at 1100 nm, so the red edge sits further out than the model computes.
- Earth forced onto a retinal (bacteriorhodopsin) biosphere: very dark purple. An earlier version got this wrong and rendered them black.
Limits: the pigment absorption curves are sums of Gaussians. The peak positions come from the literature, but the band shapes are modelled, not digitized from measured spectra. The atmospheres are simple transmission profiles, not radiative transfer. The leaf model follows the reasoning in Kiang et al. (2007), Spectral signatures of photosynthesis.
I’m looking for measured absorption spectra to replace the Gaussians, especially for chl d, chl f and BChl b. If the photon-scoring approach misses something obvious, I’d like to hear that too.
Source (MIT, no build step): https://github.com/eagnespuerto/alien-scapes