Packagecv.orion.filters
Classpublic class FadeFilter
ImplementsIFilter

The FadeFilter determines at what rate to fade a particle. The closer to 1, the slower the particle will fade.


Example
There are two ways to apply the filter. The first way it so set it via the config object. The second way is to add it to the effectFilters array itself.
  import cv.Orion;
  import cv.orion.filters.FadeFilter;
  
  // First method
  var e:Orion = new Orion(linkageClass, null, {effectFilters:[new FadeFilter(0.96)]});
  
  // Second method
  var e2:Orion = new Orion(linkageClass);
  e2.effectFilters.push(new FadeFilter(0.96));
  



Public Properties
 PropertyDefined by
  value : Number
The value to multiply against the particle's alpha.
FadeFilter
Public Methods
 MethodDefined by
  
FadeFilter(value:Number = 0.95)
Controls how quickly a particle fades.
FadeFilter
  
applyFilter(particle:ParticleVO, target:Orion):void
Applies the specified filter to a particular particle.
FadeFilter
Property detail
valueproperty
public var value:Number

The value to multiply against the particle's alpha. The closer to 1, the slower it will fade.

Constructor detail
FadeFilter()constructor
public function FadeFilter(value:Number = 0.95)

Controls how quickly a particle fades.

Parameters
value:Number (default = 0.95) — The value to multiply against the particle's alpha. The closer to 1, the slower it will fade.
Method detail
applyFilter()method
public function applyFilter(particle:ParticleVO, target:Orion):void

Applies the specified filter to a particular particle.

Parameters
particle:ParticleVO — The individual particle.
 
target:Orion — The emitter associated with the particle.