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_BOXconstant

A card is drawn in a box 100 wide and 140 tall, the 5:7 of a poker-size card, and scales to any width.

Import it

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

Definition

const CARD_BOX: { readonly width: 100; readonly height: 140; readonly radius: 7; } = { width: 100, height: 140, radius: 7 } as const

Members

NameTypeDescription
width100
height140
radius7

Examples

import { CARD_BOX } from "@johnmorrisdotca/toranpu/card-backs";
console.log(CARD_BOX);
{ width: 100, height: 140, radius: 7 }

What it prints (run when this page was built)

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