Reference · Rolls and exact odds
DIE_SIZE_PXconstant
The pixels of each size.
Import it
import { DIE_SIZE_PX } from "@johnmorrisdotca/korokoro";
Definition
const DIE_SIZE_PX: Readonly<Record<DieSize, number>> = { small: 48, medium: 96, large: 150 }
Members
| Name | Type | Description |
|---|---|---|
small | number | |
medium | number | |
large | number |
Examples
import { DIE_SIZE_PX } from "@johnmorrisdotca/korokoro";
console.log(Object.keys(DIE_SIZE_PX));[ 'small', 'medium', 'large' ]What it prints (run when this page was built)