Packageorg.flintparticles.twoD.renderers
Classpublic class VectorLineRenderer
InheritanceVectorLineRenderer Inheritance SpriteRendererBase Inheritance flash.display.Sprite

The VectorLineRenderer draws particles as continuous lines mapping the path the particle travels. This is useful for effects like hair and grass.

The VectorLineRenderer uses the color and alpha of the particle for the color of the current line segment, and uses the scale of the particle for the line width.

If you don't want users to see the lines growing, the runAhead method of the emitter can be used to jump straight to the final image.

See also

org.flintparticles.common.emitters.Emitter.runAhead()


Public Properties
 PropertyDefined by
 Inheritedemitters : Array
The array of all emitters being rendered by this renderer.
SpriteRendererBase
Public Methods
 MethodDefined by
  
The constructor creates a VectorLineRenderer.
VectorLineRenderer
 Inherited
addEmitter(emitter:Emitter):void
Adds the emitter to the renderer.
SpriteRendererBase
 Inherited
removeEmitter(emitter:Emitter):void
Removes the emitter from the renderer.
SpriteRendererBase
Protected Methods
 MethodDefined by
 Inherited
addParticle(particle:Particle):void
The addParticle method is called when a particle is added to one of the emitters that is being rendered by this renderer.
SpriteRendererBase
  
VectorLineRenderer
 Inherited
removeParticle(particle:Particle):void
The removeParticle method is called when a particle is removed from one of the emitters that is being rendered by this renderer.
SpriteRendererBase
  
renderParticles(particles:Array):void
The renderParticles method is called during the render phase of every frame if the state of one of the emitters being rendered by this renderer has changed.
VectorLineRenderer
  
updateParticles(ev:Event):void
VectorLineRenderer
Constructor detail
VectorLineRenderer()constructor
public function VectorLineRenderer()

The constructor creates a VectorLineRenderer. After creation it should be added to the display list of a DisplayObjectContainer to place it on the stage and should be applied to an Emitter using the Emitter's renderer property.

See also

org.flintparticles.twoD.emitters.Emitter.renderer
Method detail
emitterUpdated()method
protected override function emitterUpdated(ev:EmitterEvent):voidParameters
ev:EmitterEvent
renderParticles()method 
protected override function renderParticles(particles:Array):void

The renderParticles method is called during the render phase of every frame if the state of one of the emitters being rendered by this renderer has changed.

Parameters
particles:Array — The particles being managed by all the emitters being rendered by this renderer. The particles are in no particular order.
updateParticles()method 
protected override function updateParticles(ev:Event):voidParameters
ev:Event