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
| Name | Type | Description |
|---|---|---|
color | string | |
metal | number | |
rough | number | |
fill | FillName | The fill it takes in a drawing. |
glow (optional) | number | undefined | How brightly it glows. Engine materials ( |
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 hullWhat it prints (run when this page was built)