AnimatedSpriteParticleRenderer class
Renders particles as animated sprites, advancing through frames over the particle's lifetime.
frames is the ordered list of source rectangles from sheet that form the animation.
- Inheritance
-
- Object
- ParticleRenderer
- AnimatedSpriteParticleRenderer
Constructors
-
AnimatedSpriteParticleRenderer({required Image sheet, required List<
Rect> frames}) -
Draws each particle as one of
frames(at least one, asserted) ofsheet, stepping through them evenly over its lifetime, in a square as wide as the particle's size, tinted by its colour.
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
render(
Canvas canvas, Particle particle) → void -
Draw a single
particleontocanvas.override -
renderBatch(
Canvas canvas, List< Particle> particles) → void -
Draw all
particlesontocanvas.inherited -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited