ownerColour関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
The colour a territory's owner is drawn in.
インポート
import { ownerColour } from "@johnmorrisdotca/tenka/ui";
定義
function ownerColour(owner: number, colours?: readonly string[]): string
引数
| 名前 | 型 | 説明 |
|---|---|---|
owner | number | The seat index, or the neutral-owner marker. |
colours (省略可) | readonly string[] | The seat colour palette. |
戻り値
string
The colour a territory's owner is drawn in.
例
import { ownerColour } from "@johnmorrisdotca/tenka/ui";
console.log(ownerColour(0));#c8463d出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。