TILE_MARKS定数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
The marks a page may put on tiles: the one chosen, ones hinted, the matches Find lights, and a wash over the blocked.
インポート
import { TILE_MARKS } from "@johnmorrisdotca/jarajara/faces";
定義
const TILE_MARKS: { readonly chosen: "#dbe8d3"; readonly chosenRing: "#52664b"; readonly hinted: "#9d6c1f"; readonly blockedWash: "rgba(34, 35, 31, 0.26)"; readonly shadow: "#2a1d0e"; readonly gold: "#d4a017"; readonly found: "#1c6e8c"; } = { chosen: "#dbe8d3", chosenRing: "#52664b", hinted: "#9d6c1f", blockedWash: "rgba(34, 35, 31, 0.26)", shadow: "#2a1d0e", gold: "#d4a017", found: "#1c6e8c" } as const
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
chosen | "#dbe8d3" | |
chosenRing | "#52664b" | |
hinted | "#9d6c1f" | |
blockedWash | "rgba(34, 35, 31, 0.26)" | |
shadow | "#2a1d0e" | |
gold | "#d4a017" | |
found | "#1c6e8c" |
例
import { TILE_MARKS } from "@johnmorrisdotca/jarajara/faces";
console.log(TILE_MARKS);{
chosen: '#dbe8d3',
chosenRing: '#52664b',
hinted: '#9d6c1f',
blockedWash: 'rgba(34, 35, 31, 0.26)',
shadow: '#2a1d0e',
gold: '#d4a017',
found: '#1c6e8c'
}出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。