Available on all targets
A particle item. You should not instanciate this yourself as it is managed by a Particles emitter object.
Particles
@:value(null)visual:Visual = null
@:value(true)visualScaleActive:Bool = true
@:value(true)visualColorActive:Bool = true
@:value(true)visualPositionActive:Bool = true
@:value(true)visualRotationActive:Bool = true
@:value(true)visualAlphaActive:Bool = true
@:value(false)active:Bool = false
@:value(0)lifespan:Float = 0
@:value(0)age:Float = 0
@:value(0)time:Float = 0
The time relative to app when this particule was emitted
@:value(0)random:Float = 0
Convenience: hold a random value between 0 and 1 for each particle
@:value(0)status:Int = 0
In case implementation needs to keep a status for each particle, this property can be used for that
@:value(true)colorRangeActive:Bool = true
@:value(Color.WHITE)colorRangeStart:Color = Color.WHITE
@:value(Color.WHITE)colorRangeEnd:Color = Color.WHITE
@:isVarcolor:Color
@:value(true)accelerationRangeActive:Bool = true
@:value(0)accelerationRangeStartX:Float = 0
@:value(0)accelerationRangeStartY:Float = 0
@:value(0)accelerationRangeEndX:Float = 0
@:value(0)accelerationRangeEndY:Float = 0
@:value(0)accelerationX:Float = 0
@:value(0)accelerationY:Float = 0
@:value(true)dragRangeActive:Bool = true
@:value(0)dragRangeStartX:Float = 0
@:value(0)dragRangeStartY:Float = 0
@:value(0)dragRangeEndX:Float = 0
@:value(0)dragRangeEndY:Float = 0
@:value(0)dragX:Float = 0
@:value(0)dragY:Float = 0
@:value(true)velocityRangeActive:Bool = true
@:value(0)velocityRangeStartX:Float = 0
@:value(0)velocityRangeStartY:Float = 0
@:value(0)velocityRangeEndX:Float = 0
@:value(0)velocityRangeEndY:Float = 0
@:value(0)velocityX:Float = 0
@:value(0)velocityY:Float = 0
@:value(true)angularVelocityRangeActive:Bool = true
@:value(0)angularVelocityRangeStart:Float = 0
@:value(0)angularVelocityRangeEnd:Float = 0
@:value(0)angularVelocity:Float = 0
@:value(true)angularAccelerationRangeActive:Bool = true
@:value(0)angularAccelerationRangeStart:Float = 0
@:value(0)angularAccelerationRangeEnd:Float = 0
@:value(0)angularAcceleration:Float = 0
@:value(0)angularDrag:Float = 0
@:value(true)scaleRangeActive:Bool = true
@:value(1)scaleRangeStartX:Float = 1
@:value(1)scaleRangeStartY:Float = 1
@:value(1)scaleRangeEndX:Float = 1
@:value(1)scaleRangeEndY:Float = 1
@:isVarscaleX:Float
@:isVarscaleY:Float
@:isVarx:Float
@:isVary:Float
@:value(0)@:isVarangle:Float = 0
@:value(true)alphaRangeActive:Bool = true
@:value(1)alphaRangeStart:Float = 1
@:value(1)alphaRangeEnd:Float = 1
@:isVaralpha:Float
inlinescale(scaleX:Float, scaleY:Float):Void
inlinepos(x:Float, y:Float):Void
inlinereset():Void