Package tripleplay.particle.effect
Class Alpha
java.lang.Object
tripleplay.particle.effect.Alpha
Adjust the alpha value of a particle.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Effector
byAge
(Interpolator interp) 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.
-
Constructor Details
-
Alpha
public Alpha()
-
-
Method Details
-
byAge
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
Returns an effector that updates the particle's alpha based on its age, as adjusted by the supplied interpolator. In general you'd usestartAlpha
of 1 andendAlpha
of 0, but if you are doing uncommon things, you might use different values.
-