Reference · Rockets, variants, parts and the fit check
Looktype
What a look changes: the colour and width of its lines in a 3D view and in a drawing, how much of the weld lines shows, the fills by material group and whether there is a halo. A look never changes a shape.
Import it
import type { Look } from "@johnmorrisdotca/uchusen-rockets";
Definition
interface Look {
line: string;
outlinePx: number;
featurePx: number;
weldPx: number;
weldOpacity: number;
outline: number;
feature: number;
weld: number;
fills: Readonly<Record<FillName, readonly [
string,
string,
string
]>>;
halo: boolean;
}
Members
| Name | Type | Description |
|---|---|---|
line | string | The colour of its lines. |
outlinePx | number | Pixels wide in a 3D view: the outline and the lines between. |
featurePx | number | |
weldPx | number | |
weldOpacity | number | How much of the weld lines shows. |
outline | number | The drawing's strokes, in its units. |
feature | number | |
weld | number | |
fills | Readonly<Record<FillName, readonly [string, string, string]>> | The drawing's fills, by material group. |
halo | boolean | The soft light behind the rocket in a drawing. |
Examples
import { LOOKS, type Look } from "@johnmorrisdotca/uchusen-rockets";
const thick: Look = LOOKS.thick;
console.log(thick.line, thick.outline);#b4c2d4 3.4What it prints (run when this page was built)