getColorIndex

abstract fun getColorIndex(red: Int, green: Int, blue: Int): Int(source)

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.