Red component in sRGB, normalized to the range [0, 1].
g
number
Green component in sRGB, normalized to the range [0, 1].
b
number
Blue component in sRGB, normalized to the range [0, 1].
weight
number
Share of analyzed pixels represented by this color, in the range [0, 1]. Higher values indicate a more prominent color. The sum of weights returned by a single BlockAPI.getDominantColors call is 1.0.