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

WearOptionstype

What a card asks of its wear: a grade or a number, a seed, and any level on its own.

Import it

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

Definition

interface WearOptions {
    wear?: string | number | null;
    seed?: number;
    corners?: number;
    edges?: number;
    surface?: number;
    creases?: number;
}

Members

NameTypeDescription
wear (optional)string | number | null | undefined

A preset's id, or a number from 0 to 1 for all the levels at once.

seed (optional)number | undefined

The seed: the same seed lays the same marks the same way. Unless said, 1.

corners (optional)number | undefined

Overrides of one level each, from 0 to 1.

edges (optional)number | undefined
surface (optional)number | undefined
creases (optional)number | undefined

Examples

import { wearLevels, type WearOptions } from "@johnmorrisdotca/fuda-cards";

const asked: WearOptions = { wear: "mint", corners: 0.5, seed: 4 };
console.log(wearLevels(asked)?.corners); // 0.5
0.5

What it prints (run when this page was built)

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