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

MaterialSpectype

One material: its colour, how metal and how rough it is in a 3D view, and the fill group it takes in a drawing.

Import it

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

Definition

interface MaterialSpec {
    color: string;
    metal: number;
    rough: number;
    fill: FillName;
    glow?: number;
    glowColor?: string;
    opacity?: number;
}

Members

NameTypeDescription
colorstring
metalnumber
roughnumber
fillFillName

The fill it takes in a drawing.

glow (optional)number | undefined

How brightly it glows. Engine materials (coil-lit, window, grow-lamp) glow with the Engines switch. Lamp materials glow with the Lights choice. Left out: it never glows.

glowColor (optional)string | undefined

The colour of that glow; left out: its own colour.

opacity (optional)number | undefined

How opaque it is in a painted 3D view, 0 to 1: glass you can see through. Left out: solid.

Examples

import { MATERIALS, type MaterialSpec } from "@johnmorrisdotca/uchusen-rockets";

const steel: MaterialSpec = MATERIALS.steel;
console.log(steel.color, steel.fill);
#c3c7cb hull

What it prints (run when this page was built)

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