本文へ移動

Uchusen Rockets宇宙船

出典つきの寸法から描いたロケットです。ページに置いて、分解して、回して見られる線画と彩色した3Dビューに加え、ロケットが本当に組み合わさるかを確かめる、型付きのデータモデルを備えています。

Uchusen は、宇宙を飛ぶ乗り物を意味する日本語「宇宙船」(うちゅうせん)から取った名前です。 名前について(英語)

目次

リファレンス · ロケット・型式・部品・適合チェック

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[]

引数

名前型説明
textstring

What to write: capitals, figures, - . / : # ( ) + & , ' ! ?, and a few kanji and katakana. Lowercase is drawn as capitals.

placeMarkingPlace

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

出力(このページを作ったときに実行した結果)

ソースを見るGitHub で編集@johnmorrisdotca/uchusen-rockets 0.14.0 のソースから作成しました。

この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。