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.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
palette |
| AssetPalette | null | undefined |
Returns
Section titled “Returns”| PaletteSwatch
| null