@relu-interactives/spatial-ecs
@relu-interactives/spatial-ecs / components / TerrainLayer
Type Alias: TerrainLayer ​
ts
type TerrainLayer = {
name: string;
color: string;
variation?: number;
};Defined in: components/Terrain.ts:9
A paint layer: what a part of the terrain looks like.
Properties ​
| Property | Type | Description | Defined in |
|---|---|---|---|
name | string | - | components/Terrain.ts:10 |
color | string | Hex colour, e.g. "#6ea04a". | components/Terrain.ts:12 |
variation? | number | Slight colour variation across the ground (0-1), for a hand-painted look. | components/Terrain.ts:14 |

