Const
The dominant colours of an image, largest area first, as hex strings. A small k-means over a sample of opaque pixels finds them, merging near-identical clusters. 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 finds them, merging near-identical clusters. Feed the result to deriveMapColors. deriveMapColorsFromImage does both.