liquidAppearance

function liquidAppearance
universe/src/appearance.ts:277
liquidAppearance(kind: LiquidKind | null, rng: Rng) → LiquidAppearance | null

The three liquids as pictures. See LiquidAppearance.

Water's absorption is the published one to within the eye's tolerance — about 0.35 per meter in the red, 0.06 in the green and 0.02 in the blue — scaled by a turbidity the seed draws, so one sea is a Bahamas shelf and the next is silt. The deep color is the open-ocean reflectance the sphere already uses, tinted between navy and teal.

kindLiquidKind | null
Undocumented
rngRng
Undocumented
ReturnsLiquidAppearance | null