material(key: string) → any
| arg | type | description |
|---|
| key | string | |
linear(hex: string) → void
'#rrggbb' (sRGB) -> linear r, g, b
| arg | type | description |
|---|
| hex | string | |
ch(i: number) → number
| arg | type | description |
|---|
| i | number | |
quat(axis: string, deg: number) → void
| arg | type | description |
|---|
| axis | string | |
| deg | number | |
child(parent: any, name: string) → any
| arg | type | description |
|---|
| parent | any | |
| name | string | |
part(parent: any, name: string, pos: { number }, size: { number }, hex: string, opts: any?) → any
A box (or another builtin mesh) under `parent`.
opts: mesh ("cube" | "sphere" | "cylinder"), mat (cloth | wood | metal | glow), rot = { axis, deg }, collide, shadows
| arg | type | description |
|---|
| parent | any | |
| name | string | |
| pos | { number } | |
| size | { number } | |
| hex | string | |
| opts | any? | |
clear(root: any) → void
| arg | type | description |
|---|
| root | any | |
laundryLine(root: any, colors: { string }) → void
A laundry line: two posts, a rope, and the role's clothes pegged on it in
the colours of the look on offer.
| arg | type | description |
|---|
| root | any | |
| colors | { string } | |
clothesChest(root: any, colors: { string }) → void
A clothes chest: a box with a lid and a folded garment showing.
| arg | type | description |
|---|
| root | any | |
| colors | { string } | |
robeRack(root: any, colors: { string }) → void
A robe rack: a wooden frame with a robe on a pole.
| arg | type | description |
|---|
| root | any | |
| colors | { string } | |
coatStand(root: any, colors: { string }) → void
A coat stand: a turned pole on a cross foot with pegs, the role's coat hanging from one peg and
its sash from another, a hat on top.
| arg | type | description |
|---|
| root | any | |
| colors | { string } | |
tailorsTable(root: any, colors: { string }) → void
A tailor's table: a trestle table with the role's clothes folded in a pile, a bolt of the
second colour unrolling over the edge and a pair of shears.
| arg | type | description |
|---|
| root | any | |
| colors | { string } | |
workMark(root: any, kind: string) → void
A ground mark for a work spot: a mat, and a tool lying on it.
| arg | type | description |
|---|
| root | any | |
| kind | string | |