Class: ParticleEmitterSettings

me. ParticleEmitterSettings

<protected> new ParticleEmitterSettings()

me.ParticleEmitterSettings contains the default settings for me.ParticleEmitter.
Source:
emitter.js, line 25
See:

Members

<static> angle :Number

Start angle for particle launch in Radians.
Type:
  • Number
Default Value:
  • Math.PI / 2
Source:
emitter.js, line 67

<static> angleVariation :Number

Variation in the start angle for particle launch in Radians.
Type:
  • Number
Default Value:
  • 0
Source:
emitter.js, line 77

<static> duration :Number

Duration that the emitter releases particles in ms (used only if emitter is Stream).
After this period, the emitter stop the launch of particles.
Type:
  • Number
Default Value:
  • Infinity
Source:
emitter.js, line 272

<static> floating :Boolean

Render particles in screen space.
Type:
  • Boolean
Default Value:
  • false
Source:
emitter.js, line 241

<static> followTrajectory :Boolean

Update the rotation of particle in accordance the particle trajectory.
The particle sprite should aim at zero angle (draw from left to right).
Override the particle minRotation and maxRotation.
Type:
  • Boolean
Default Value:
  • false
Source:
emitter.js, line 208

<static> framesToSkip :Number

Skip n frames after updating the particle system once.
This can be used to reduce the performance impact of emitters with many particles.
Type:
  • Number
Default Value:
  • 0
Source:
emitter.js, line 283

<static> frequency :Number

How often a particle is emitted in ms (used only if emitter is Stream).
Necessary that value is greater than zero.
Type:
  • Number
Default Value:
  • 100
Source:
emitter.js, line 261

<static> gravity :Number

Vertical force (Gravity) for each particle.
Type:
  • Number
Default Value:
  • 0
Source:
emitter.js, line 187
See:

<static> height :Number

Height of the particle spawn area.
Type:
  • Number
Default Value:
  • 0
Source:
emitter.js, line 36

<static> image :CanvasImageSource

Image used for particles.
Type:
  • CanvasImageSource
Default Value:
  • 1x1 white pixel
Source:
emitter.js, line 46
See:

<static> maxEndScale :Number

Maximum end scale ratio for particles.
Type:
  • Number
Default Value:
  • 0
Source:
emitter.js, line 177

<static> maxLife :Number

Maximum time each particle lives once it is emitted in ms.
Type:
  • Number
Default Value:
  • 3000
Source:
emitter.js, line 97

<static> maxParticles :Number

Maximum number of particles launched each time in this emitter (used only if emitter is Stream).
Type:
  • Number
Default Value:
  • 10
Source:
emitter.js, line 251

<static> maxRotation :Number

Maximum start rotation for particles sprites in Radians.
Type:
  • Number
Default Value:
  • 0
Source:
emitter.js, line 137

<static> maxStartScale :Number

Maximum start scale ratio for particles (1 = no scaling).
Type:
  • Number
Default Value:
  • 1
Source:
emitter.js, line 157

<static> minEndScale :Number

Minimum end scale ratio for particles.
Type:
  • Number
Default Value:
  • 0
Source:
emitter.js, line 167

<static> minLife :Number

Minimum time each particle lives once it is emitted in ms.
Type:
  • Number
Default Value:
  • 1000
Source:
emitter.js, line 87

<static> minRotation :Number

Minimum start rotation for particles sprites in Radians.
Type:
  • Number
Default Value:
  • 0
Source:
emitter.js, line 127

<static> minStartScale :Number

Minimum start scale ratio for particles (1 = no scaling).
Type:
  • Number
Default Value:
  • 1
Source:
emitter.js, line 147

<static> onlyInViewport :Boolean

Update particles only in the viewport, remove it when out of viewport.
Type:
  • Boolean
Default Value:
  • true
Source:
emitter.js, line 231

<static> speed :Number

Start speed of particles.
Type:
  • Number
Default Value:
  • 2
Source:
emitter.js, line 107

<static> speedVariation :Number

Variation in the start speed of particles.
Type:
  • Number
Default Value:
  • 1
Source:
emitter.js, line 117

<static> textureAdditive :Boolean

Enable the Texture Additive by canvas composite operation (lighter).
WARNING: Composite Operation may decreases performance!.
Type:
  • Boolean
Default Value:
  • false
Source:
emitter.js, line 220

<static> totalParticles :Number

Total number of particles in the emitter.
Type:
  • Number
Default Value:
  • 50
Source:
emitter.js, line 57

<static> width :Number

Width of the particle spawn area.
Type:
  • Number
Default Value:
  • 0
Source:
emitter.js, line 26

<static> wind :Number

Horizontal force (like a Wind) for each particle.
Type:
  • Number
Default Value:
  • 0
Source:
emitter.js, line 198
Copyright © 2011 - 2017, Olivier Biot, Jason Oster, Aaron McLeod
Documentation generated by JSDoc 3.4.0 on 2017-02-28T11:37:41+08:00 using the DocStrap template modified by codename-.