getColorIndex
Returns the index of the closest color in the color table.
Return
The index of the closest color in the color table.
Parameters
red
The red component of the color to find.
green
The green component of the color to find.
blue
The blue component of the color to find.