ParticleSystem:getInsertMode

ParticleSystem:getInsertMode Available since LÖVE 0.9.0 This function is not supported in earlier versions. Gets the mode used when the ParticleSystem adds new particles. Function Synopsis mode = ParticleSystem:getInsertMode( ) Arguments None. Returns ParticleInsertMode mode The mode used when the ParticleSystem adds new particles. See Also ParticleSystem ParticleSystem:setInsertMode

ParticleSystem:getImage

ParticleSystem:getImage Available since LÖVE 0.9.0 This function is not supported in earlier versions. Removed in LÖVE 0.10.0 Use ParticleSystem:getTexture instead. Gets the image used for the particles. Function Synopsis image = ParticleSystem:getImage( ) Arguments Nothing. Returns Image image An Image to use for the particles. See Also ParticleSystem ParticleSystem:setImage

ParticleSystem:getEmitterLifetime

ParticleSystem:getEmitterLifetime Available since LÖVE 0.9.0 This function is not supported in earlier versions. Gets how long the particle system will emit particles (if -1 then it emits particles forever). Function Synopsis life = ParticleSystem:getEmitterLifetime( ) Arguments Nothing. Returns number life The lifetime of the emitter (in seconds). See Also ParticleSystem ParticleSystem:setEmitterLifetime

ParticleSystem:getEmissionRate

ParticleSystem:getEmissionRate Available since LÖVE 0.9.0 This function is not supported in earlier versions. Gets the amount of particles emitted per second. Function Synopsis rate = ParticleSystem:getEmissionRate( ) Arguments Nothing. Returns number rate The amount of particles per second. See Also ParticleSystem ParticleSystem:setEmissionRate

ParticleSystem:getDirection

ParticleSystem:getDirection Gets the direction of the particle emitter (in radians). Function Synopsis direction = ParticleSystem:getDirection( ) Arguments None. Returns number direction The direction of the emitter (radians). See Also ParticleSystem

ParticleSystem:getCount

ParticleSystem:getCount Available since LÖVE 0.9.0 It has been renamed from ParticleSystem:count. Gets the number of particles that are currently in the system. Function Synopsis count = ParticleSystem:getCount( ) Arguments None. Returns number count The current number of live particles. See Also ParticleSystem ParticleSystem:getBufferSize

ParticleSystem:getColors

ParticleSystem:getColors Available since LÖVE 0.9.0 This function is not supported in earlier versions. Gets the series of colors applied to the particle sprite. Function Synopsis r1, g1, b1, a1, r2, g2, b2, a2, ..., r8, g8, b8, a8 = ParticleSystem:getColors( ) Arguments Nothing. Returns number r1 First color, red component (0-255). number g1 First color, green component (0-255). number b1 First color, blue component (0-255). number a1 First color, alpha component (0-255). number r2

ParticleSystem:getBufferSize

ParticleSystem:getBufferSize Available since LÖVE 0.9.0 This function is not supported in earlier versions. Gets the maximum number of particles the ParticleSystem can have at once. Function Synopsis size = ParticleSystem:getBufferSize( ) Arguments None. Returns number size The maximum number of particles. See Also ParticleSystem ParticleSystem:setBufferSize ParticleSystem:getCount

ParticleSystem:getAreaSpread

ParticleSystem:getAreaSpread Available since LÖVE 0.9.0 This function is not supported in earlier versions. Gets the area-based spawn parameters for the particles. Function Synopsis distribution, dx, dy = ParticleSystem:getAreaSpread( ) Arguments None. Returns AreaSpreadDistribution distribution The type of distribution for new particles. number dx The maximum spawn distance from the emitter along the x-axis for uniform distribution, or the standard deviation along the x-axis for normal

ParticleSystem:emit

ParticleSystem:emit Available since LÖVE 0.9.0 This function is not supported in earlier versions. Emits a burst of particles from the particle emitter. Function Synopsis ParticleSystem:emit( numparticles ) Arguments number numparticles The amount of particles to emit. The number of emitted particles will be truncated if the particle system's max buffer size is reached. Returns Nothing. Examples Spawn a bunch of particles This example will create a burst of particles when the spacebar