Const
The dominant colours of an image, largest area first, as hex strings — a small k-means over a sample of opaque pixels, with near-identical clusters merged. Feed the result to deriveMapColors; deriveMapColorsFromImage does both.
Optional
The most colours to return (default 6); merged clusters can leave fewer.
The dominant colours of an image, largest area first, as hex strings — a small k-means over a sample of opaque pixels, with near-identical clusters merged. Feed the result to deriveMapColors; deriveMapColorsFromImage does both.