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

scaleBarfunction

A scale bar for a sheet: a round length in metres that fits maxPixels at the scale pixelsPerMetre, with ticks, and the ratio when the sheet is dpi dots to an inch.

Import it

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

Definition

function scaleBar(pixelsPerMetre: number, maxPixels: number, dpi?: number): ScaleBar

Parameters

NameTypeDescription
pixelsPerMetrenumber

The sheet's scale.

maxPixelsnumber

The longest bar the sheet has room for.

dpi (optional)number

The sheet's dots to the inch, for the ratio (default 96).

Returns

ScaleBar

The bar: its metres, its pixels, its ticks and the ratio as text.

Examples

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

const bar = scaleBar(2, 300);
console.log(bar.metres, bar.pixels, bar.ticks.length, bar.ratio);
100 200 6 1:1890

What it prints (run when this page was built)

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