getDominantColor

fun getDominantColor(defaultColor: Int): Int

Returns the color of the dominant swatch from the palette, as an RGB packed int.

Parameters

defaultColor

value to return if the swatch isn't available

See also

.getDominantSwatch