Proton

Proton

new Proton(proParticleCountopt, integrationTypeopt)

The constructor to add emitters

Properties:
Name Type Attributes Default Description
integrationType String <optional>
Proton.EULER
emitters Array

All added emitter

renderers Array

All added renderer

time Number

The active time

oldtime Number

The old time

Source:
To Do:
  • proParticleCount is not in use
  • add more documentation of the single properties and parameters
Parameters:
Name Type Attributes Default Description
proParticleCount Number <optional>

not in use?

integrationType Number <optional>
Proton.EULER

Classes

.Alpha
.Attraction
.Collision
.Color
.CrossZone
.Force
.Gravity
.GravityWell
.Pool
.RandomDrift
.Rate
.Repulsion
.Rotate
.Scale

Namespaces

.DomUtil
.Util
.WebGLUtil

Methods

addEmitter(emitter)

add the Emitter

Source:
Parameters:
Name Type Description
emitter Emitter

addRender(render)

add a type of Renderer

Source:
Parameters:
Name Type Description
render Renderer

amendChangeTabsBug()

Source:
To Do:
  • add description

destroy()

Destroys everything related to this Proton instance. This includes all emitters, and all properties

Source:

getCount()

Counts all particles from all emitters

Source:

removeEmitter(emitter)

Removes an Emitter

Source:
Parameters:
Name Type Description
emitter Proton.Emitter

update()

Updates all added emitters

Source: