Class: Smoke

Smoke(SmokeParams) → {Smoke}

new Smoke(SmokeParams) → {Smoke}

Default Constructor
Parameters:
Name Type Description
SmokeParams SmokeParams struct with xPos, yPos, width, yAcceleration, life, xVelocity, yVelocity, flicker, intensity, xAcceleration, size, yOffset, rVal, gVal, bVal, aVal, colorShift
Source:
Returns:
New instance of Smoke object
Type
Smoke

Methods

getAVal() → {float}

Get the A value of Particle Color
Source:
Returns:
this.aVal
Type
float

getBVal() → {float}

Get the B value of Particle Color
Source:
Returns:
this.bVal
Type
float

getColorShift() → {float}

Get the color shifting value of the system
Source:
Returns:
this.colorShift
Type
float

getGVal() → {float}

Get the G value of Particle Color
Source:
Returns:
this.gVal
Type
float

getRVal() → {float}

Get the R value of Particle Color
Source:
Returns:
this.rVal
Type
float

incAVal(val)

Adjust the alpha value of the system particles
Parameters:
Name Type Description
val float inc how much to increment by
Source:

incBVal(val)

Adjust the blue value of the system particles
Parameters:
Name Type Description
val float inc how much to increment by
Source:

incColorShift(val)

Adjust the color shift value of the system
Parameters:
Name Type Description
val float inc how much to increment by
Source:

incGVal(val)

Adjust the green value of the system particles
Parameters:
Name Type Description
val float inc how much to increment by
Source:

incRVal(val)

Adjust the red value of the system particles
Parameters:
Name Type Description
val float inc how much to increment by
Source: