patternPicture beta
Function of @v12-engine/editor
ts
export declare function patternPicture(pattern: NonNullable<MapTile['pattern']>, color: Rgb, size?: number, patterns?: Readonly<Record<string, PatternDef>>): string;A ground made in code (MapTile.pattern) as a picture to show on the page, size across: what its swatch and the Ground editor's preview show, made as the ground's own texture is; patterns are the game's own, for a kind that names one