Function: generateRingVariation()
ts
function generateRingVariation(config, rng): RingVariation | null;Generates a ring variation from the shared planet PRNG. Draws the same number of random values regardless of hasRings, so enabling/disabling the flag never drifts the rest of the planet appearance.
Parameters
| Parameter | Type | Description |
|---|---|---|
config | BodyConfig | Planet physics config (drives palette + rejects star bodies). |
rng | () => number | Planet-scoped PRNG (same instance as planetVariation). |
Returns
RingVariation | null
- A fully-populated RingVariation, or null when rings are disabled.