Reference · Rockets, variants, parts and the fit check
stillsfunction
The numbered stills for reduced motion: the keel just laid, evenly spaced moments, and the finished ship.
Import it
import { stills } from "@johnmorrisdotca/uchusen-rockets";
Definition
function stills(steps: readonly PlayStep[], count?: number): PlayFrame[]
Parameters
| Name | Type | Description |
|---|---|---|
steps | readonly PlayStep[] | The ship's build order. |
count (optional) | number | How many stills. Fewer than 2 becomes the start and the end. |
Returns
PlayFrame[]
One frame per still, from the start to the end.
Examples
import { stills } from "@johnmorrisdotca/uchusen-rockets";
const frames = stills([{ slot: "drive", start: 0, days: 10 }], 3);
console.log(frames.length, frames[0].day, frames[2].day);3 0 10What it prints (run when this page was built)