hex(c: { number }, a: number?) → string
Colour
Derived from NB.PALETTE so the interface and the world grade together.
| arg | type | description |
|---|
| c | { number } | |
| a | number? | |
b(v: number) → number
| arg | type | description |
|---|
| v | number | |
amber(a: number) → void
| arg | type | description |
|---|
| a | number | |
ember(a: number) → void
| arg | type | description |
|---|
| a | number | |
bone(a: number) → void
| arg | type | description |
|---|
| a | number | |
miasma(a: number) → void
| arg | type | description |
|---|
| a | number | |
verdigris(a: number) → void
| arg | type | description |
|---|
| a | number | |
fog(a: number) → void
| arg | type | description |
|---|
| a | number | |
ink(a: number) → void
| arg | type | description |
|---|
| a | number | |
display(size: number, colour: string) → void
the title-page register: large, widely tracked, all caps
| arg | type | description |
|---|
| size | number | |
| colour | string | |
title(size: number, colour: string) → void
a screen or panel heading
| arg | type | description |
|---|
| size | number | |
| colour | string | |
body(size: number, colour: string) → void
running text
| arg | type | description |
|---|
| size | number | |
| colour | string | |
hand(size: number, colour: string) → void
the physician's own hand: an aside, a caption, a spoken line
| arg | type | description |
|---|
| size | number | |
| colour | string | |
smallcaps(size: number, colour: string) → void
an inked label on a drawer: small, tracked out, capital
| arg | type | description |
|---|
| size | number | |
| colour | string | |
numeral(size: number, colour: string) → void
a figure meant to be read across a room
| arg | type | description |
|---|
| size | number | |
| colour | string | |
roman(n: number) → string
| arg | type | description |
|---|
| n | number | |
merge(a: any, b: any?) → any
Atoms
| arg | type | description |
|---|
| a | any | |
| b | any? | |
label(text: string, style: any, props: any?) → any
| arg | type | description |
|---|
| text | string | |
| style | any | |
| props | any? | |
box(style: any, children: { any }?) → any
| arg | type | description |
|---|
| style | any | |
| children | { any }? | |
row(style: any, children: { any }?) → any
| arg | type | description |
|---|
| style | any | |
| children | { any }? | |
spacer(flex: number?) → any
| arg | type | description |
|---|
| flex | number? | |
abs(style: any, children: { any }?) → any
An absolutely-placed box. Every glyph below is built out of these.
| arg | type | description |
|---|
| style | any | |
| children | { any }? | |
entrance(delay: number, rise: number?) → any
A staggered fade-and-rise. `fill = "both"` holds the first frame until the
delay elapses, so stepping the delay across siblings cascades them in.
| arg | type | description |
|---|
| delay | number | |
| rise | number? | |
fadeIn(delay: number, seconds: number?) → any
| arg | type | description |
|---|
| delay | number | |
| seconds | number? | |
breathe(period: number, low: number, high: number?) → any
A slow swell, for a flame or a warning.
| arg | type | description |
|---|
| period | number | |
| low | number | |
| high | number? | |
drift(period: number, distance: number, delay: number) → any
A slow drift downward, for ash.
| arg | type | description |
|---|
| period | number | |
| distance | number | |
| delay | number | |
plate(style: any, children: { any }?) → any
| arg | type | description |
|---|
| style | any | |
| children | { any }? | |
page(style: any, children: { any }?) → any
| arg | type | description |
|---|
| style | any | |
| children | { any }? | |
rule(colour: string, opts: any?) → any
Line work
A hairline with a lozenge in the middle. Takes any colour.
| arg | type | description |
|---|
| colour | string | |
| opts | any? | |
hair(colour: string, opacity: number?) → any
| arg | type | description |
|---|
| colour | string | |
| opacity | number? | |
button(text: string, callbackId: string, opts: any?) → any
Controls
A button that looks stamped rather than clicked: an inked plate with a lit
rim, a warm hover and a pressed well.
GIVE IT A NUMERIC `width`. A percentage width on a button widget resolves
against the screen rather than the box it sits in, so a "100%" button inside
a 660-wide card renders 1080 wide and runs off the card's right edge.
| arg | type | description |
|---|
| text | string | |
| callbackId | string | |
| opts | any? | |
meter(frac: number, fill: string, opts: any?) → any
A recessed channel with a fill in it, hatched like an instrument.
| arg | type | description |
|---|
| frac | number | |
| fill | string | |
| opts | any? | |
mask(h: number, opts: any?) → any
THE MASK. The emblem of the whole thing: wide brim, two glass lenses, the
long leather beak that held the herbs.
| arg | type | description |
|---|
| h | number | |
| opts | any? | |
bell(h: number, opts: any?) → any
THE BELL of Ashcross. `lit` is the toll that just rang.
| arg | type | description |
|---|
| h | number | |
| opts | any? | |
vial(h: number, liquid: string, fill: number, opts: any?) → any
A TINCTURE VIAL. `liquid` is any CSS colour; `fill` 0..1 is what is left.
| arg | type | description |
|---|
| h | number | |
| liquid | string | |
| fill | number | |
| opts | any? | |
lantern(h: number, lit: boolean, opts: any?) → any
A PATIENT'S LANTERN. Dark until they are treated; then it burns.
| arg | type | description |
|---|
| h | number | |
| lit | boolean | |
| opts | any? | |
censer(h: number, opts: any?) → any
THE CENSER, on its chain, smoking.
| arg | type | description |
|---|
| h | number | |
| opts | any? | |
cane(h: number, opts: any?) → any
THE CANE: a crook of dark wood with a brass ferrule.
| arg | type | description |
|---|
| h | number | |
| opts | any? | |
sealedDoor(h: number, opts: any?) → any
A DOOR bricked and nailed shut, with the plague cross daubed on it.
| arg | type | description |
|---|
| h | number | |
| opts | any? | |
gate(h: number, opts: any?) → any
THE LAZARETTO GATE, standing open on the light.
| arg | type | description |
|---|
| h | number | |
| opts | any? | |
backdrop(opts: any?) → any
| arg | type | description |
|---|
| opts | any? | |