groundTexture beta
Function of @v12-engine/client/ground
ts
export declare function groundTexture(pattern: string | PatternDef | PatternMaker, color: Readonly<Rgb>, seed: number, size?: number, recipe?: GroundRecipe, patterns?: Readonly<Record<string, PatternDef>>): Uint8Array;A texture of the ground, as RGBA bytes of size by size pixels, that repeats without a seam and is color on average. seed makes two tiles of the same pattern look apart (grass and dark grass). The pattern is one of the client's by name, a game's own by id (among patterns) or as it is (PatternDef), or pixels as a game makes them (PatternMaker); recipe is what else it is made of, its parameters among it