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 : Vector.<Emitter>
The array of all emitters being rendered by this renderer.
SpriteRendererBase
Protected Properties
 PropertyDefined By
 Inherited_particles : Array
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
  
[override]
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
[override] 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
[override]
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
override protected function emitterUpdated(ev:EmitterEvent):void

Parameters

ev:EmitterEvent

renderParticles()method 
override protected 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 
override protected function updateParticles(ev:Event):void

Parameters

ev:Event