get_nearest_color_index method

get_nearest_color_index

Gets the index of the nearest 32-bit ARGB color.

Returns

The index of the nearest color.

def get_nearest_color_index(self, argb_32_color):
    ...
ParameterTypeDescription
argb_32_colorintThe 32-bit ARGB color.

get_nearest_color_index

Gets the index of the nearest color.

Returns

The index of the nearest color.

def get_nearest_color_index(self, color):
    ...
ParameterTypeDescription
colorColorThe color.

See Also