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

English faces

import { … } from "@johnmorrisdotca/toranpu/card-faces/english";

164.2 kB minified and gzipped, with everything it imports (measured with esbuild)

The English pattern: the traditional deck with its kings, queens and jacks, as vectors by Dmitry Fomin, who dedicated them to the public domain (CC0) on Wikimedia Commons; the jokers are his too, from his Atlas deck, with the corner word drawn afresh. See docs/credits.md. Written by scripts/designs.mjs, never by hand.

import { cardFaceSvg } from "@johnmorrisdotca/toranpu/card-faces";
import { ENGLISH_PATTERN } from "@johnmorrisdotca/toranpu/card-faces/english";

cardFaceSvg("KS", { design: ENGLISH_PATTERN });

Exports

NameKindWhat it is
ENGLISH_PATTERNconstantThe English pattern, every card and two jokers, drawn in a box 360 by 540.

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