Reference · The Sun, Moon and planets: pure parts
BeamOptionstype
What the attributes say: whether the beam is on, and its options.
Import it
import type { BeamOptions } from "@johnmorrisdotca/chikyu-earth/space";
Definition
interface BeamOptions {
on: boolean;
elevation: number;
cells: number;
cellSize: number;
colour: string;
strength: number;
}
Members
| Name | Type | Description |
|---|---|---|
on | boolean | |
elevation | number | |
cells | number | |
cellSize | number | |
colour | string | |
strength | number |
Examples
import type { BeamOptions } from "@johnmorrisdotca/chikyu-earth/space";
const options: BeamOptions = { on: true, elevation: 25, cells: 19, cellSize: 0, colour: "#8fd1ff", strength: 0.6 };
console.log(options.cells);