Skip to content

CellGroundColors beta ​

Interface of @v12-engine/client

ts
export interface CellGroundColors

The colours of the ground as the ground's view draws them (CellLayerContext.groundColors): each tile of its paint by its index (0, no paint, has none), and the ground where nothing is painted, by its slope (radians) and height

Members ​

natural ​

ts
natural(slope: number, height: number): Readonly<Rgb>;

The colour of ground nothing is painted on, at a slope (radians) and a height (world units)

tiles ​

ts
readonly tiles: readonly Readonly<Rgb>[];

Each tile's colour, by its index in the terrain's paint (Terrain.tiles): what its texture is on average