starSizefunction
The side of the square array a star of this radius is embedded in.
Import it
import { starSize } from "@johnmorrisdotca/narabe";
Definition
function starSize(radius?: number): number
Parameters
| Name | Type | Description |
|---|---|---|
radius (optional) | number | The Chinese Checkers star radius. |
Returns
number
The side of the square array a star of this radius is embedded in.
Examples
import { STAR_RADIUS, starSize } from "@johnmorrisdotca/narabe";
console.log(starSize(STAR_RADIUS));17What it prints (run when this page was built)