Class: Fire

Fire(FireParams) → {Fire}

new Fire(FireParams) → {Fire}

Default Constructor
Parameters:
Name Type Description
FireParams struct with xPos, yPos, width, yAcceleration, life, xVelocity, yVelocity, flicker, intensity, xAcceleration, size, yOffset, emberSelection, taperSelection FireParams struct holding specified parameter values
Source:
Returns:
New instance of Fire object
Type
Fire

Methods

applyEmbers()

Applies ember effect to selected particles
Source:

applyTaper()

Applies taper effect to selected particles
Source:

getEmberSelection() → {float}

Get the percentage of particles with taper effect
Source:
Returns:
this.emberSelection
Type
float

getTaperSelection() → {float}

Get the percentage of particles with taper effect
Source:
Returns:
this.emberSelection
Type
float

incEmberSelection(val)

Adjust the percentage of particles with ember effect
Parameters:
Name Type Description
val float inc how much to increment by
Source:

incTaperSelection(val)

Adjust the percentage of particles with ember effect
Parameters:
Name Type Description
val float inc how much to increment by
Source: