API Docs for: 2.2.1
Show:

File: pixi/plugins/particles/cloudkid/AnimatedParticle.hx

  1. package pixi.plugins.particles.cloudkid;
  2. @:native("cloudkid.AnimatedParticle")
  3. extern class AnimatedParticle {
  4. /**
  5. * An individual particle image with an animation. While this class may be functional, it
  6. * has not gotten thorough testing or examples yet, and is not considered to be release ready.
  7. * @class AnimatedParticle
  8. * @constructor
  9. * @param {Emitter} emitter The emitter that controls this AnimatedParticle.
  10. */
  11. function new(e:pixi.plugins.particles.cloudkid.Emitter):Void;
  12. /**
  13. * Initializes the particle for use, based on the properties that have to
  14. * have been set already on the particle.
  15. * @method init
  16. */
  17. function init():Void;
  18. /**
  19. * Sets the textures for the particle.
  20. * @method applyArt
  21. * @param {Array<pixi.textures.Texture>} art An array of pixi.textures.Texture objects for this animated particle.
  22. */
  23. function applyArt(art:Array<pixi.textures.Texture>):Void;
  24. /**
  25. * Updates the particle.
  26. * @method update
  27. * @param {Float} delta Time elapsed since the previous frame, in __seconds__.
  28. */
  29. function update( delta:Float ):Void;
  30. /**
  31. * Destroys the particle, removing references and preventing future use.
  32. * @method destroy
  33. */
  34. function destroy():Void;
  35. }