Reference · Facts, line drawings and positions
RingBandtype
One band of a ring system, in kilometres from the planet's centre: how much light it stops (alpha, 0 to 1) and how bright it is (tone, 0 dark, 1 bright).
Import it
import type { RingBand } from "@johnmorrisdotca/wakusei-planets";
Definition
interface RingBand {
from: number;
to: number;
alpha: number;
tone: number;
}
Members
| Name | Type | Description |
|---|---|---|
from | number | |
to | number | |
alpha | number | |
tone | number |
Examples
import { BODIES, type RingBand } from "@johnmorrisdotca/wakusei-planets";
const bands: readonly RingBand[] = BODIES.saturn.rings ?? [];
console.log(bands.length, bands[2]?.from);7 91975What it prints (run when this page was built)