1681-engine / pixel / SwayDef
Interface: SwayDef ​
Defined in: src/pixel/swayRig.ts:22
Properties ​
amp ​
ts
amp: number;Defined in: src/pixel/swayRig.ts:31
Whole world pixels of reach at wind 1.
cloth? ​
ts
optional cloth?: readonly [number, number, number, number];Defined in: src/pixel/swayRig.ts:27
hang: the cloth, [x0, y0, x1, y1) in the frame's pixels.
mode ​
ts
mode: SwayMode;Defined in: src/pixel/swayRig.ts:23
speed ​
ts
speed: number;Defined in: src/pixel/swayRig.ts:33
Sway cycles a second.
top? ​
ts
optional top?: number;Defined in: src/pixel/swayRig.ts:25
top: the share of the frame's height, from its top, that moves.
tufts? ​
ts
optional tufts?: Readonly<Record<string, readonly TuftRect[]>>;Defined in: src/pixel/swayRig.ts:29
tufts: the moving rects per variant ("*" for every variant without its own).