Skip to the content

Uchusen Rockets宇宙船

Rockets drawn from sourced sizes: line drawings and painted 3D views you drop into a page, take apart and turn round, and a typed model that checks whether a rocket really goes together.

Uchusen is the Japanese word 宇宙船 for spaceship. About the name

Contents

Reference · Rockets, variants, parts and the fit check

markingfunction

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 it

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

Definition

function marking(text: string, place: MarkingPlace, style?: MarkingStyle): Piece[]

Parameters

NameTypeDescription
textstring

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

placeMarkingPlace

Where and how large.

style (optional)MarkingStyle

The paint and the details; everything has a default.

Returns

Piece[]

The pieces to add to a module's or a ship's own.

Examples

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

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/uchusen-rockets 0.14.0.