Reference · Rockets, variants, parts and the fit check
lightPoolfunction
A baked pool of warm light on a surface: a thin sheet in the light-pool material, lying in the frame. It is not a real light source.
Import it
import { lightPool } from "@johnmorrisdotca/uchusen-rockets";
Definition
function lightPool(frame: Frame, radius: number): Piece[]
Parameters
| Name | Type | Description |
|---|---|---|
frame | Frame | The surface it lies on. |
radius | number | How far the pool reaches, in metres. |
Returns
Piece[]
The one sheet.
Examples
import { lightPool } from "@johnmorrisdotca/uchusen-rockets";
const pool = lightPool({ o: [0, 0, 0], u: [1, 0, 0], v: [0, 1, 0], w: [0, 0, 1] }, 1);
console.log(pool[0].kind);plateWhat it prints (run when this page was built)