リファレンス
トーナメント表の背景
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. |
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。