Reference · Rockets, variants, parts and the fit check
nameplatefunction
A ship's name plate: the prefix and name on one line and the registry on a line below, both in the face the fleet uses, on one flank. The name line is place; the registry
goes 1.7 capital heights lower.
Import it
import { nameplate } from "@johnmorrisdotca/uchusen-rockets";
Definition
function nameplate(ship: ShipMarks, place: MarkingPlace, style?: MarkingStyle): Piece[]
Parameters
| Name | Type | Description |
|---|---|---|
ship | ShipMarks | The ship's lettering from |
place | MarkingPlace | Where the name line goes. |
style (optional) | MarkingStyle | The paint and details for both lines. |
Returns
Piece[]
The pieces.
Examples
import { FLEET_MARKS, nameplate } from "@johnmorrisdotca/uchusen-rockets";
const pieces = nameplate(FLEET_MARKS.ships.miyamoto, { radius: 8, y: 20, az: Math.PI / 2, height: 1.4, run: "up", align: "middle" }, { field: "hull-white", flood: true });
console.log(pieces.length > 100);trueWhat it prints (run when this page was built)