Packagecv.orion.filters
Classpublic class ScaleFilter
ImplementsIFilter

The ScaleFilter causes particles to grow or shrink based on the given value. If the number is 1, it won't do anything. If the number is greater than 1, it will cause the particle to grow. If the number is less than 1, it will cause the particle to shrink.


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.ScaleFilter;
  
  // First method
  var e:Orion = new Orion(linkageClass, null, {effectFilters:[new ScaleFilter(1.1)]});
  
  // Second method
  var e2:Orion = new Orion(linkageClass);
  e2.effectFilters.push(new ScaleFilter(1.1));
  



Public Properties
 PropertyDefined by
  value : Number
The rate in which to scale the particle.
ScaleFilter
Public Methods
 MethodDefined by
  
ScaleFilter(value:Number = 0.99)
Causes particle to either shrink or grow depending on the given value.
ScaleFilter
  
applyFilter(particle:ParticleVO, target:Orion):void
Applies the specified filter to a particular particle.
ScaleFilter
Property detail
valueproperty
public var value:Number

The rate in which to scale the particle.

Constructor detail
ScaleFilter()constructor
public function ScaleFilter(value:Number = 0.99)

Causes particle to either shrink or grow depending on the given value.

Parameters
value:Number (default = 0.99) — The rate in which to scale the particle.
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.