本文へ移動

Taisen Brackets対戦

対戦の一覧から、トーナメント表をSVGで描きます。

対戦(たいせん)は、二者が向かい合って勝負することです。 名前について(英語)

目次

リファレンス

トーナメント表の背景

import { … } from "@johnmorrisdotca/taisen-brackets/backgrounds";

リファレンスの説明と例は英語です。見出しと目次は日本語です。

エクスポート

名前種類概要
BACKGROUND_PRESETS定数The names of the twenty-five poster backgrounds.
BackgroundInk型The colours that read well over a background: text, lines, boxes, edges and its dominant colours.
BackgroundPresetName型The name of one of the poster backgrounds.
backgroundSvg関数Draws one of the poster backgrounds.
BackgroundSvg型A drawn background: the defs and the body to put in an SVG, and the ink that reads over it.
BackgroundSvgOptions型What a background is drawn for: its width and height, the theme, colours, angle, intensity and seed.
contrastRatio関数The contrast between two colours, from 1 (the same) to 21 (black on white).
FAMILY_BACKGROUNDS_VERSION定数The version of the backgrounds the family shares; a change to any picture changes it.
luminance関数How light a colour is, from 0 (black) to 1 (white), as the WCAG contrast rules measure it.
parseColor関数Reads a colour written as #rgb, #rrggbb or rgb(…).
toHex関数Writes a colour as #rrggbb.

ソースを見るGitHub で編集@johnmorrisdotca/taisen-brackets 0.20.0 のソースから作成しました。

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