Look型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
What a look changes: the colour and width of its lines in a 3D view and in a drawing, how much of the weld lines shows, the fills by material group and whether there is a halo. A look never changes a shape.
インポート
import type { Look } from "@johnmorrisdotca/uchusen-rockets";
定義
interface Look {
line: string;
outlinePx: number;
featurePx: number;
weldPx: number;
weldOpacity: number;
outline: number;
feature: number;
weld: number;
fills: Readonly<Record<FillName, readonly [
string,
string,
string
]>>;
halo: boolean;
}
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
line | string | The colour of its lines. |
outlinePx | number | Pixels wide in a 3D view: the outline and the lines between. |
featurePx | number | |
weldPx | number | |
weldOpacity | number | How much of the weld lines shows. |
outline | number | The drawing's strokes, in its units. |
feature | number | |
weld | number | |
fills | Readonly<Record<FillName, readonly [string, string, string]>> | The drawing's fills, by material group. |
halo | boolean | The soft light behind the rocket in a drawing. |
例
import { LOOKS, type Look } from "@johnmorrisdotca/uchusen-rockets";
const thick: Look = LOOKS.thick;
console.log(thick.line, thick.outline);#b4c2d4 3.4出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。