本文へ移動

Uchusen Rockets宇宙船

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

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

目次

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

lockup関数

リファレンスの説明と例は英語です。見出しと目次は日本語です。

A lock-up of a big registry with the name set smaller above it, justified to its width, and an optional pinstripe between them: the arrangement of a ship's exterior marking. The registry's cap height is place.height and its anchor is the middle of the lettering; the name stands 0.4 of that, a third of a registry height above.

インポート

import { lockup } from "@johnmorrisdotca/uchusen-rockets";

定義

function lockup(registry: string, name: string, place: MarkingPlace, style?: MarkingStyle, pinstripe?: MaterialName, nameRatio?: number): Piece[]

引数

名前型説明
registrystring

The big line, such as "SPX-207".

namestring

The small line, such as "ISV KAMINARI".

placeMarkingPlace

Where the registry goes.

style (省略可)MarkingStyle

The face, paint and inline outline for both lines.

pinstripe (省略可)"fin" | "deck" | "white" | "tile" | "dark" | "bell" | "foam" | "steel" | "tile-plain" | "soot" | "bell-inside" | "engine-metal" | "engine-pale" | "fin-dark" | "black" | "ink-worn" | "gold" | "solar" | "glass" | "blue" | "yellow" | "concrete" | "ground" | "sand" | "water" | "red" | "hull-white" | "hull-white-worn" | "hull-orange" | "hull-orange-worn" | "hull-dawn" | "hull-dawn-worn" | "hull-yellow" | "hull-grey" | "hull-grey-dark" | "hull-blue" | "panel-dark" | "coolant" | "blanket" | "copper" | "coil" | "radiator" | "radiator-hot" | "hazard" | "frost" | "lamp-amber" | "lamp-blue" | "lamp-red" | "plant" | "fuel" | "core" | "blanket-worn" | "foil" | "kapton" | "pipe-steel" | "window" | "coil-lit" | "nav-red" | "nav-green" | "nav-white" | "strobe" | "beacon" | "flood" | "light-pool" | "light-pool-mid" | "light-pool-edge" | "halo-port" | "halo-port-soft" | "halo-starboard" | "halo-starboard-soft" | "halo-stern" | "halo-stern-soft" | "halo-strobe" | "halo-strobe-soft" | "halo-beacon" | "halo-beacon-soft" | "halo-window" | "glass-clear" | "sky-wash" | "grow-lamp" | "leaf" | "soil" | "fabric" | "wood" | "lawn" | "lawn-dark" | "meadow" | "shrub" | "bark" | "flower" | "crop-gold" | "crop-green" | "water-clear" | undefined

A paint colour for a thin stripe between the two lines, as wide as the registry.

nameRatio (省略可)number

The name's capital height as a share of the registry's; 0.4 by default.

戻り値

Piece[]

The pieces.

例

import { lockup } from "@johnmorrisdotca/uchusen-rockets";

const pieces = lockup("SPX-207", "ISV KAMINARI", { radius: 40, y: 200, az: 0, height: 6, align: "middle" }, { face: "orbitron", inline: "hull-white" }, "red");
console.log(pieces.length > 100);
true

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

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

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