marking関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
Text on a hull. The letters are geometry made from the outlines of Michroma (and M PLUS 1p Bold for kanji), a filled shape for the painted look and an outline of lines for the line and thick looks, laid on a
flat wall or wrapped on a hull of revolution so that it follows the curve. Sizes are metres: place.height is the height of a capital, and markingWidth says how wide the text comes out. The same arguments
always give the same bytes.
インポート
import { marking } from "@johnmorrisdotca/uchusen-rockets";
定義
function marking(text: string, place: MarkingPlace, style?: MarkingStyle): Piece[]
引数
| 名前 | 型 | 説明 |
|---|---|---|
text | string | What to write: capitals, figures, |
place | MarkingPlace | Where and how large. |
style (省略可) | MarkingStyle | The paint and the details; everything has a default. |
戻り値
Piece[]
The pieces to add to a module's or a ship's own.
例
import { marking } from "@johnmorrisdotca/uchusen-rockets";
// "SPX-207" 1.2 m high, on a 6.7 m hull 14 m up the spine, facing +Z
const pieces = marking("SPX-207", { radius: 6.7, y: 14, az: 0, height: 1.2, align: "middle" }, { ink: "black" });
console.log(pieces.length > 50);true出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。