Method “getKeyColors”
function getKeyColors()
Returns a set of representative colors for the image.
Note that the alpha component of the returned colors corresponds to the fraction of the image covered by colors close to this color. The sum of all all alpha values is
1.0.The number of representative colors is usually 7.