nameplate関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
A ship's name plate: the prefix and name on one line and the registry on a line below, both in the face the fleet uses, on one flank. The name line is place; the registry
goes 1.7 capital heights lower.
インポート
import { nameplate } from "@johnmorrisdotca/uchusen-rockets";
定義
function nameplate(ship: ShipMarks, place: MarkingPlace, style?: MarkingStyle): Piece[]
引数
| 名前 | 型 | 説明 |
|---|---|---|
ship | ShipMarks | The ship's lettering from |
place | MarkingPlace | Where the name line goes. |
style (省略可) | MarkingStyle | The paint and details for both lines. |
戻り値
Piece[]
The pieces.
例
import { FLEET_MARKS, nameplate } from "@johnmorrisdotca/uchusen-rockets";
const pieces = nameplate(FLEET_MARKS.ships.miyamoto, { radius: 8, y: 20, az: Math.PI / 2, height: 1.4, run: "up", align: "middle" }, { field: "hull-white", flood: true });
console.log(pieces.length > 100);true出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。