Packageflare.materials.filters
Classpublic class ColorParticleFilter
InheritanceColorParticleFilter Inheritance FLSLFilter Inheritance flash.events.EventDispatcher

...



Public Properties
 PropertyDefined By
 Inheritedanimated : Boolean
Gets or sets whatever the filter is animated or not.
FLSLFilter
 InheritedblendMode : String
Gets or sets the mode how to blend between this and the last filter.
FLSLFilter
 InheritedbyteCode : ByteArray
Returns the byte code used for this filter.
FLSLFilter
 Inheritedname : String
[read-only] Gets the filter program name.
FLSLFilter
 Inheritednamespace : String
[read-only] Gets the filter program namespace.
FLSLFilter
 Inheritedparams : Array
A dynamic property that contains all parameters (FilterValue class) of the filter.
FLSLFilter
 InheritedtechniqueName : String
Sets or gets the technique to use for this filter.
FLSLFilter
 Inheritedtechniques : Vector.<String>
[read-only] Gets all thecniques availables on the filter.
FLSLFilter
 Inheritedtextures : Array
A dynamic property that contains all textures (FilterTexture class) of the filter.
FLSLFilter
Public Methods
 MethodDefined By
  
ColorParticleFilter(colors:Array, alphas:Array = null, ratios:Array = null, blendMode:String)
ColorParticleFilter
 Inherited
Creates and returns a copy of the filter.
FLSLFilter
 Inherited
createTechnique(name:String, vertexFunctions:Array = null, fragmentFunctions:Array = null):void
Creates a new dynamic technique.
FLSLFilter
 Inherited
deleteTechnique(name:String):void
Deletes a previously defined technique.
FLSLFilter
 Inherited
dispose():void
FLSLFilter
 Inherited
dispose():void
[static]
FLSLFilter
  
setColors(colors:Array, alphas:Array = null, ratios:Array = null):void
Set the colors for the particles over the time.
ColorParticleFilter
 Inherited
update():void
Update all filter parameters and send the changed values to all subscribed materials.
FLSLFilter
Events
 Event Summary Defined By
 InheritedThis event occurs whenever the technique or blendMode has changed.FLSLFilter
Public Constants
 ConstantDefined By
 InheritedCHANGE_TECHNIQUE : String = changeTechnique
[static]
FLSLFilter
Constructor Detail
ColorParticleFilter()Constructor
public function ColorParticleFilter(colors:Array, alphas:Array = null, ratios:Array = null, blendMode:String)



Parameters
colors:Array
 
alphas:Array (default = null)
 
ratios:Array (default = null)
 
blendMode:String (default = NaN)
Method Detail
setColors()method
public function setColors(colors:Array, alphas:Array = null, ratios:Array = null):void

Set the colors for the particles over the time.

Parameters

colors:Array — An array of RGB hexadecimal color values to be used in the gradient; for example, red is 0xFF0000, blue is 0x0000FF, and so on. You can specify up to 15 colors. For each color, be sure you specify a corresponding value in the alphas and ratios parameters.
 
alphas:Array (default = null) — An array of alpha values for the corresponding colors in the colors array; valid values are 0 to 1. If the value is less than 0, the default is 0. If the value is greater than 1, the default is 1.
 
ratios:Array (default = null) — An array of color distribution ratios; valid values are 0 to 255. This value defines the percentage of the width where the color is sampled at 100%. The value 0 represents the initial position, and 255 represents the final position.