getDarkColor method

Color getDarkColor()

The dark color used to tint the slot's attachment for two color tinting, if hasDarkColor is true. The dark color's alpha is not used.

Implementation

Color getDarkColor() {
  final color = _bindings.spine_slot_get_dark_color(_slot);
  return Color(_bindings.spine_color_get_r(color), _bindings.spine_color_get_g(color), _bindings.spine_color_get_b(color),
      _bindings.spine_color_get_a(color));
}