- Prototope Documentation
- Animator
- Border
- CameraLayer
- CameraPosition
- Color
- Gesture
- Heartbeat
- Image
- Layer
- LayerAnimatorStore
- Math
- PanGesture
- Particle
- ParticleEmitter
- ParticlePreset
- Point
- Rect
- Shadow
- Size
- Sound
- TapGesture
- Timestamp
- TouchSample
- TouchSequence
- Tunable
- View as:
- Swift
- JavaScript
Particle
Method reference
-
⚓
public init(imageName: String, preset: ParticlePreset = .IKnowWhatImDoing)
-
Variables
-
⚓
public var lifetime: Double
The lifetime, in seconds, of particles.
-
⚓
public var lifetimeRange: Double
The range of variation for the particle’s lifetime.
-
⚓
public var birthRate: Double
The birth rate, in particle / second, for new particles.
-
⚓
public var scale: Double
The scale of the particles.
-
⚓
public var scaleRange: Double
The range of particle scale.
-
⚓
public var spin: Radian
The spin of particles. Positive values spin clockwise, negative values spin counter-clockwise.
-
⚓
public var spinRange: Radian
The spin range of particles. Positive values spin clockwise, negative values spin counter-clockwise.
-
⚓
public var velocity: Double
The velocity of particles.
-
⚓
public var velocityRange: Double
The velocity range of particles.
-
⚓
public var emissionRange: Radian
The emission range, in radians. Particles are uniformly distributed in this range.
Set to a full circle (2π) for a full circular range.
-
⚓
public var color: Color
The colour of the particle. Or ‘color’
-
⚓
public var redRange: Double
The range of red in the particle.
-
⚓
public var blueRange: Double
The range of blue in the particle.
-
⚓
public var greenRange: Double
The range of green in the particle.
-
⚓
public var alphaRange: Double
The range of alpha in the particle.
-
⚓
public var redSpeed: Double
The speed of red in the particle.
-
⚓
public var blueSpeed: Double
The speed of blue in the particle.
-
⚓
public var greenSpeed: Double
The speed of green in the particle.
-
⚓
public var alphaSpeed: Double
The speed of alpha in the particle.
-
⚓
public var xAcceleration: Double
The x acceleration of particles.
-
⚓
public var yAcceleration: Double
The y acceleration of particles.
-
⚓
public var zAcceleration: Double
The z acceleration of particles.