Class Color.Animated

    • Constructor Detail

    • Method Detail

      • recolor

         Unit recolor(Color target, Animation.Type type, Long durationNanos)

        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:
        type - animation type.
      • 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