Skip to content

pickAmbientBackground

function pickAmbientBackground(palette):
| PaletteSwatch
| null;

Defined in: packages/asset-client/src/palette.ts:51

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