Skip to content

foliageOverlayPixels beta ​

Function of @v12-engine/editor

ts
export declare function foliageOverlayPixels(kinds: ReadonlySet<FoliageOverlay>, source: FoliageOverlaySource, pixels?: Uint8Array<ArrayBuffer>): {
    pixels: Uint8Array;
    counts: FoliageOverlayCounts;
};

The colours of the overlays of grass asked for (FoliageOverlay), RGBA a cell (as TerrainView.setOverlay takes them), with what they found. Hiding patches: each in a colour of its own, its edge (a cell beside one not of it) strong, its inside light; the grass's state over them, its colour (GRASS_STATE_COLORS), the patches' edges kept