faintGridfunction
How many bands and how many tiles a level has.
Import it
import { faintGrid } from "@johnmorrisdotca/hoshi-stars/faint";
Definition
function faintGrid(level: number): { bands: number; columns: number[]; }
Parameters
| Name | Type | Description |
|---|---|---|
level | number | The level, 0 to 2. |
Returns
{ bands: number; columns: number[]; }
The number of bands and the number of tiles in each, band by band from the south pole.
Examples
import { faintGrid } from "@johnmorrisdotca/hoshi-stars/faint";
const grid = faintGrid(0);
console.log(grid.columns.length, grid.columns[9]); // 18 bands, 36 tiles in the one on the equator side18 36What it prints (run when this page was built)