Skip to the content

Toranpuトランプ

Use a deck, play eleven games with computers, solve a solitaire, or display cards in your own design.

Toranpu is Japanese for playing cards. About the name

Contents

Reference · Card backs

CARD_BACK_LOOKconstant

Each back's own colours: its field, the lines and dots drawn on the field, and the paper round it.

Import it

import { CARD_BACK_LOOK } from "@johnmorrisdotca/toranpu/card-backs";

Definition

const CARD_BACK_LOOK: Readonly<Record<"classic-red" | "classic-blue" | "ink-dots", { field: string; ink: string; paper: string; }>> = {
    "classic-red": { field: "#b3262d", ink: "#fffaf0", paper: "#fffdf8" },
    "classic-blue": { field: "#1f4e8c", ink: "#fffaf0", paper: "#fffdf8" },
    "ink-dots": { field: "#24231f", ink: "#fffaf0", paper: "#fffdf8" },
}

Members

NameTypeDescription
classic-red{ field: string; ink: string; paper: string; }
classic-blue{ field: string; ink: string; paper: string; }
ink-dots{ field: string; ink: string; paper: string; }

Examples

import { CARD_BACK_LOOK } from "@johnmorrisdotca/toranpu/card-backs";
console.log(CARD_BACK_LOOK);
{
  'classic-red': { field: '#b3262d', ink: '#fffaf0', paper: '#fffdf8' },
  'classic-blue': { field: '#1f4e8c', ink: '#fffaf0', paper: '#fffdf8' },
  'ink-dots': { field: '#24231f', ink: '#fffaf0', paper: '#fffdf8' }
}

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/toranpu 2.15.0.