Class PolyColor.Animated

    • Constructor Detail

    • Method Detail

      • recolor

         Unit recolor(PolyColor target, Animation animation)

        recolor this color to the target color, with the given animation type and duration.

        make sure to check if the color is a gradient, as this method may not have the expected result!

        Parameters:
        animation - animation to use.
      • update

         Boolean update(Long deltaTimeNanos)

        update the color animation, if present. After, the animation is cleared, and the color becomes static again.

        Returns:

        true if the animation finished on this tick, false if otherwise