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

WearFeaturestype

Every mark of a worn card: its corners, its centring, and the creases, scratches, specks and stain of each face.

Import it

import type { WearFeatures } from "@johnmorrisdotca/fuda-cards";

Definition

interface WearFeatures {
    levels: WearLevels;
    corners: WearCorner[];
    centering: {
        x: number;
        y: number;
    };
    front: WearFace;
    back: WearFace;
}

Members

NameTypeDescription
levelsWearLevels
cornersWearCorner[]

Top left, top right, bottom right, bottom left of the front.

centering{ x: number; y: number; }

The print's shift off centre in pixels at 300 wide: x and y.

frontWearFace
backWearFace

Examples

import { wearLayout, wearPreset, type WearFeatures } from "@johnmorrisdotca/fuda-cards";

const features: WearFeatures = wearLayout(wearPreset("moderately-played")!.levels, 2);
console.log(features.front.scratches.length > 0); // true
true

What it prints (run when this page was built)

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