Interface IntSmoother


public interface IntSmoother
Allows using various ways of smoothly interpolating an int value to another int value as a first-class function. This is a functional interface whose functional method is apply(int, int, float).
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final IntSmoother
    A method reference to DescriptiveColor.lerpColors(int, int, float).
    static final IntSmoother
    Interpolates between start and end by change using MathUtils.lerp(float, float, float), then rounds the result to an int with MathUtils.round(float).
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    apply(int start, int end, float change)
     
  • Field Details

    • LINEAR

      static final IntSmoother LINEAR
      Interpolates between start and end by change using MathUtils.lerp(float, float, float), then rounds the result to an int with MathUtils.round(float).
    • COLOR

      static final IntSmoother COLOR
      A method reference to DescriptiveColor.lerpColors(int, int, float).
  • Method Details

    • apply

      int apply(int start, int end, float change)