CONTENT CONTRACT · VERSION 1
StorybookLayer
One painted layer of a page, drawn at the page's canvas size.
Signature
{ depth_permille: number, drift: (StorybookDrift)?, flash_rest_permille: (Permille)?, grey: (TextureAssetId)?, id: Name, image: TextureAssetId, swell: (StorybookSwell)? }Fields
| Name | Type | Meaning |
|---|---|---|
depth_permille | number | How strongly it follows the camera: 0 stays put, 1000 moves with the full travel. Range: 0…4000; Unit: permille |
drift | StorybookDrift | A steady drift with a gentle bob (birds); absent: still. |
flash_rest_permille | Permille | Opacity between lightning flashes; it shows fully during a flash of its page. Absent: always fully shown. Range: 0…1000; Unit: permille |
grey | TextureAssetId | The same layer without colour, crossed into when the page greys; absent: it keeps its colour. Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: asset:texture |
id | Name | Local name of the layer within its page. Length: 1…96; Pattern: ^[a-z][a-z0-9_]{0,95}$ |
image | TextureAssetId | The painted layer (straight alpha), at the page's canvas size. Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: asset:texture |
swell | StorybookSwell | A rolling swell up and down (waves, a boat); absent: none. |