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
Returns:
this.aVal
- Type
- float
getBVal() → {float}
Get the B value of Particle Color
Returns:
this.bVal
- Type
- float
getColorShift() → {float}
Get the color shifting value of the system
Returns:
this.colorShift
- Type
- float
getGVal() → {float}
Get the G value of Particle Color
Returns:
this.gVal
- Type
- float
getRVal() → {float}
Get the R value of Particle Color
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 |
incBVal(val)
Adjust the blue value of the system particles
Parameters:
Name | Type | Description |
---|---|---|
val |
float | inc how much to increment by |
incColorShift(val)
Adjust the color shift value of the system
Parameters:
Name | Type | Description |
---|---|---|
val |
float | inc how much to increment by |
incGVal(val)
Adjust the green value of the system particles
Parameters:
Name | Type | Description |
---|---|---|
val |
float | inc how much to increment by |
incRVal(val)
Adjust the red value of the system particles
Parameters:
Name | Type | Description |
---|---|---|
val |
float | inc how much to increment by |