Class R.particles.effects.SprayParticle
A spray particle
Defined in: spray.js.
Constructor Attributes | Constructor Name and Description |
---|---|
R.particles.effects.SprayParticle(position, angle, spread, ttl)
|
Class Detail
R.particles.effects.SprayParticle(position, angle, spread, ttl)
- Parameters:
- position
- {Point2D} The starting position of the particle. A velocity vector will be derived from this position.
- angle
- {Number} The angle, about the point, at which to emit particles.
- spread
- {Number} The spread, or range, about the angle which to emit particles
- ttl
- {Number} The lifetime of the particle in milliseconds