Skip to content

@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 ​

PropertyTypeDescriptionDefined in
namestring-components/Terrain.ts:10
colorstringHex colour, e.g. "#6ea04a".components/Terrain.ts:12
variation?numberSlight colour variation across the ground (0-1), for a hand-painted look.components/Terrain.ts:14