Package | flare.materials.filters |
Class | public class ColorParticleFilter |
Inheritance | ColorParticleFilter ![]() ![]() |
Method | Defined By | ||
---|---|---|---|
ColorParticleFilter(colors:Array, alphas:Array = null, ratios:Array = null, blendMode:String) | ColorParticleFilter | ||
![]() |
Creates and returns a copy of the filter. | FLSLFilter | |
![]() | createTechnique(name:String, vertexFunctions:Array = null, fragmentFunctions:Array = null):void
Creates a new dynamic technique. | FLSLFilter | |
![]() | deleteTechnique(name:String):void
Deletes a previously defined technique. | FLSLFilter | |
![]() | dispose():void | FLSLFilter | |
![]() | dispose():void [static] | FLSLFilter | |
setColors(colors:Array, alphas:Array = null, ratios:Array = null):void
Set the colors for the particles over the time. | ColorParticleFilter | ||
![]() | update():void
Update all filter parameters and send the changed values to all subscribed materials. | FLSLFilter |
ColorParticleFilter | () | Constructor |
public function ColorParticleFilter(colors:Array, alphas:Array = null, ratios:Array = null, blendMode:String)
colors:Array | |
alphas:Array (default = null )
| |
ratios:Array (default = null )
| |
blendMode:String (default = NaN )
|
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.
|