Class Alpha

java.lang.Object
tripleplay.particle.effect.Alpha

public class Alpha extends Object
Adjust the alpha value of a particle.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static Effector
    Returns an effector that updates the particle's alpha based on its age, as adjusted by the supplied interpolator.
    static Effector
    byAge(Interpolator interp, float startAlpha, float endAlpha)
    Returns an effector that updates the particle's alpha based on its age, as adjusted by the supplied interpolator.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Alpha

      public Alpha()
  • Method Details

    • byAge

      public static Effector byAge(Interpolator interp)
      Returns an effector that updates the particle's alpha based on its age, as adjusted by the supplied interpolator. The particle will be faded from alpha of one to zero.
    • byAge

      public static Effector byAge(Interpolator interp, float startAlpha, float endAlpha)
      Returns an effector that updates the particle's alpha based on its age, as adjusted by the supplied interpolator. In general you'd use startAlpha of 1 and endAlpha of 0, but if you are doing uncommon things, you might use different values.