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
| Name | Type | Description |
|---|---|---|
text | string | What to write: capitals, figures, |
place | MarkingPlace | 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);trueWhat it prints (run when this page was built)