@ff0000-ad-tech/ad-particles
v2.1.3
Published
[![npm (tag)](https://img.shields.io/npm/v/@ff0000-ad-tech%2Fad-particles.svg?style=flat-square)](https://www.npmjs.com/package/@ff0000-ad-tech%2Fad-particles) [![GitHub issues](https://img.shields.io/github/issues/ff0000-ad-tech/ad-particles.svg?style=fl
Downloads
2
Readme
RED Interactive Agency - Ad Technology
Particles
Particle Emitter system
API
Emitter
- new Emitter()
- .tween
- .init(canvasElement, setting)
- .set(key, val, triggerChange)
- .get(key) ⇒ number | string | object | array
- .setProperties(obj)
- .addCustomBehavier(type, func)
- .removeCustomBehavier(type, func)
- .emit()
- .stopEmitting()
- .empty()
- .pause()
- .resume()
- .to(duration, props)
- .createParticles(amount)
- .addModel(modelObj)
- .removeModel(id)
Particle
- new Particle()
- .update()
- .getAnimationStyle()
- .render()
- .applyForce()
- .isDead() ⇒ boolean
- .checkWorld(w)
- ._checkBorder(axis, val)
ParticleModel
- new ParticleModel()
Graphic.Shape
- new Shape()
Graphic.Image
- new Image()
Graphic.Circle
- new Circle(size, style)
Graphic.Rect
- new Rect(width, height, style)
Graphic.Sprite
- new Sprite(image, size, style, spriteSetting)