Interface: ImageFillOptions
Properties
fallback?
ts
optional fallback?: string;Color for tiles with no image under them (with "contain", or a transparent image).
fit?
ts
optional fit?: "cover" | "contain" | "stretch";How the image is laid over the layout bounds: "cover" (default; cropped to fill them, centerd, like the backdrop prop), "contain" (whole image, centerd) or "stretch".
palette?
ts
optional palette?: readonly string[];Snap each tile's color to the nearest of these hex colors (judged in OKLab), as if choosing from a box of real mosaic tiles. Omit for the exact average.
samples?
ts
optional samples?: number;Most pixels sampled per tile; more is smoother but slower. Defaults to 256.