Class Animation.Shake

Enclosing class:
Animation

public static class Animation.Shake extends Animation.Interped<Animation.Shake>
An animation that shakes a layer randomly in the x and y directions.
  • Constructor Details

    • Shake

      public Shake(Layer layer)
  • Method Details

    • bounds

      public Animation.Shake bounds(float underX, float overX, float underY, float overY)
      Configures the amount under and over the starting x and y allowed when shaking. The animation will shake the layer in the range x + underX to x + overX and similarly for y, thus underX (and underY) should be negative.
    • cycleTime

      public Animation.Shake cycleTime(float millis)
      Configures the shake cycle time in the x and y directions.
    • cycleTime

      public Animation.Shake cycleTime(float millisX, float millisY)
      Configures the shake cycle time in the x and y directions.