| Package | org.flintparticles.twoD.renderers |
| Class | public class VectorLineRenderer |
| Inheritance | VectorLineRenderer SpriteRendererBase flash.display.Sprite |
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
| Method | Defined By | ||
|---|---|---|---|
The constructor creates a VectorLineRenderer. | VectorLineRenderer | ||
![]() | addEmitter(emitter:Emitter):void
Adds the emitter to the renderer. | SpriteRendererBase | |
![]() | removeEmitter(emitter:Emitter):void
Removes the emitter from the renderer. | SpriteRendererBase | |
| Method | Defined By | ||
|---|---|---|---|
![]() | 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 | |
emitterUpdated(ev:EmitterEvent):void [override] | VectorLineRenderer | ||
![]() | 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 | ||
| 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
| emitterUpdated | () | method |
| renderParticles | () | method |
override protected function renderParticles(particles:Array):voidThe 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):voidParameters
ev:Event |