getColorForTarget

fun getColorForTarget(target: Target, defaultColor: Int): Int

Returns the selected color for the given target from the palette as an RGB packed int.

Parameters

defaultColor

value to return if the swatch isn't available