本文へ移動

Toranpuトランプ

デッキを使い、11種類のゲームでコンピューターと対戦し、ソリティアを解いたり、独自の絵柄でカードを表示したりできます。

「トランプ」は、日本語で playing cards を指す言葉です。 名前について(英語)

目次

リファレンス

英国式の絵柄

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

最小化と gzip 圧縮をしたサイズは 164.2 kB(読み込むものをすべて含み、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 });

エクスポート

名前種類概要
ENGLISH_PATTERN定数The English pattern, every card and two jokers, drawn in a box 360 by 540.

ソースを見るGitHub で編集@johnmorrisdotca/toranpu 2.15.0 のソースから作成しました。

この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。