Skip to the content

Fuda Cards札

Collectible card frames for images and live 3D: a true thickness, an edge, foil, stacks, wear and a binder, as two web components.

Fuda is the Japanese word 札 for a card or a tag. About the name

Contents

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

NameTypeDescription
kindCornerKind
sizenumber

How far the damage reaches along each edge, in units of a 250 by 350 card.

jagnumber[]

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 true
number true

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/fuda-cards 0.11.0.