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

beamLightfunction

The beam as light in a drawing. Painted is a blue-violet cone with a white core, rings and a flare at the drone. A line look is the same cone in strokes. Reduced motion is the glow with no rings.

Import it

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

Definition

function beamLight(from: Vec3, to: Vec3, narrow: number, wide: number, cam: Camera, look: LookName, id: string, still?: boolean): string

Parameters

NameTypeDescription
fromVec3

The drone end.

toVec3

The part end, where the light is brightest.

narrownumber

The radius at the drone.

widenumber

The radius at the part.

camCamera

The picture's camera.

look"line" | "thick" | "painted"

Painted fills the light. Anything else draws strokes.

idstring

A prefix so two pictures on one page do not share a gradient.

still (optional)boolean

True for reduced motion: the glow only, with no rings and no sparks.

Returns

string

SVG markup for the light. Empty when the cone has no area.

Examples

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

console.log(typeof beamLight);
function

What it prints (run when this page was built)

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