Reference · Options, materials, stacks and wear
WearCornertype
One corner of a worn card: how it is worn and how far the damage reaches.
Import it
import type { WearCorner } from "@johnmorrisdotca/fuda-cards";
Definition
interface WearCorner {
kind: CornerKind;
size: number;
jag: number[];
}
Members
| Name | Type | Description |
|---|---|---|
kind | CornerKind | |
size | number | How far the damage reaches along each edge, in units of a 250 by 350 card. |
jag | number[] | Jagged points of a chip, in the corner's own frame. |
Examples
import { wearLayout, wearPreset, type WearCorner } from "@johnmorrisdotca/fuda-cards";
const corner: WearCorner = wearLayout(wearPreset("lightly-played")!.levels).corners[0];
console.log(typeof corner.size, corner.jag.length >= 0); // number truenumber trueWhat it prints (run when this page was built)