Reference · Facts, line drawings and positions
RingStriptype
The strip of a body's rings: RGBA bytes width pixels across, and the inner and outer radii in body radii.
Import it
import type { RingStrip } from "@johnmorrisdotca/wakusei-planets";
Definition
interface RingStrip {
data: Uint8Array;
width: number;
inner: number;
outer: number;
}
Members
| Name | Type | Description |
|---|---|---|
data | Uint8Array<ArrayBufferLike> | |
width | number | |
inner | number | |
outer | number |
Examples
import { BODIES, ringStrip, type RingStrip } from "@johnmorrisdotca/wakusei-planets";
const strip: RingStrip | null = ringStrip(BODIES.saturn, 64);
console.log(strip?.data.length);256What it prints (run when this page was built)