Skip to content

GroundRecipe beta ​

Interface of @v12-engine/client/ground

ts
export interface GroundRecipe

What a ground made in code is made of besides its pattern and colour (TileLook.recipe, MapTile.pattern): each as the pattern has it when left out

Members ​

fineness ​

ts
fineness?: number;

How fine its noise is: 0.5 coarser, 1 as the pattern has it, 2 finer

params ​

ts
params?: Readonly<Record<string, number>>;

The pattern's own parameters (PatternDef.params), by id: each at its default where not said

second ​

ts
second?: Readonly<Rgb>;

A second colour, mixed with the first in patches

seed ​

ts
seed?: number;

Another way of the same pattern: two grounds of one pattern look apart

speckles ​

ts
speckles?: number;

How much of it is specks: 0 none, 1 many

strength ​

ts
strength?: number;

How far its light and dark are apart: 0 flat, 1 as the pattern has it, 2 twice that