Interface: PlanetTiles
Planet-only tile primitives — exposes the sol and atmo boards under separate sub-namespaces, plus the smooth-sphere paint helpers shared across the body.
Properties
sol
sol: SolBoardTiles;Sol board — interactive hex grid carrying terrain relief.
atmo
atmo: BoardTiles | null;Atmo board — playable hex grid floating above the sol surface. null on bodies without an atmosphere (atmosphereThickness === 0).
Methods
repaintSmoothSphere()
repaintSmoothSphere(): void;Forces the smooth-sphere preview to re-read sim.tileStates and repaint its vertices. Call after mutating tile elevations.
Returns
void
paintSmoothSphere()
paintSmoothSphere(colors): void;Stamps per-tile RGB into the smooth-sphere vertex buffer.
Parameters
| Parameter | Type |
|---|---|
colors | Map<number, RGB> |
Returns
void
paintAtmoShell()
paintAtmoShell(colors): void;Stamps per-tile RGB onto the procedural atmo shell that drives the 'shader' view on rocky and gaseous bodies. The shell uses a nearest-tile lookup so vertices closest to a painted hex pick up its colour. No-op on bodies without an atmo shell.
Parameters
| Parameter | Type |
|---|---|
colors | Map<number, RGB> |
Returns
void