BackgroundInk型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
The colours that read well over a background: text, lines, boxes, edges and its dominant colours.
インポート
import type { BackgroundInk } from "@johnmorrisdotca/taisen-brackets/backgrounds";
ほかのエクスポート元: @johnmorrisdotca/taisen-brackets
定義
type BackgroundInk = shared.BackgroundInk;
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
base | string | The plain colour to fill the picture with before |
dark | boolean | Whether the ground is dark (so the text is light). |
text | string | |
muted | string | |
line | string | The connecting lines. |
box | string | The fill and edge of a box laid on the picture; both are |
edge | string | |
panel | string | The pill behind a round's name, a team's plain disc, the ring round a mark, the dotted road and the accent for a winner, a champion and a highlight. |
plain | string | |
ring | string | |
spine | string | |
accent | string | |
dominant | string[] | The colours the picture is mostly, worst cases included: the ground's two colours and each blended with the glow at its strongest. |
例
import { backgroundSvg, type BackgroundInk } from "@johnmorrisdotca/taisen-brackets/backgrounds";
const ink: BackgroundInk = backgroundSvg("ice", { width: 400, height: 300, theme: "light" }).ink;
console.log(ink.dark, ink.text);false #16181a出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。