Skip to content
scroll to zoom · drag to pan

pickAmbientBackground

function pickAmbientBackground(palette): PaletteSwatch | null;

Defined in: packages/asset-client/dist/index.d.ts:181

Pick the swatch best suited for an ambient surface behind the image. Prefers muted/light tones — too vibrant a background fights the image.

Order: lightMuted → muted → lightVibrant → dominant.

Parameter Type
palette | AssetPalette | null | undefined

PaletteSwatch | null