Function: buildGasPalette()
ts
function buildGasPalette(bands?): TerrainLevel[];Build a gas giant TerrainLevel palette from four band colours supplied by the caller. The lib stays agnostic about the chemistry — the caller computes the four stops from its own gas catalogue + body composition and passes the result in. When bands is omitted, a neutral warm-tan default is used.
Thresholds and roughness schedule are identical to the legacy molecule- specific branches so existing materials continue to band-edge correctly.
Parameters
| Parameter | Type |
|---|---|
bands? | GasBandColors |