Difference between revisions of "Particles"

From GiderosMobile
Line 2: Line 2:
 
'''Supported platforms:''' <br/>
 
'''Supported platforms:''' <br/>
 
'''Available since:''' Gideros 2016.06<br/>
 
'''Available since:''' Gideros 2016.06<br/>
=== Description ===
+
=== <translate>Description</translate> ===
 
<translate>Particles sprite (alpha), which allows to draw several identical dots or bitmaps with varying colour and orientation</translate>
 
<translate>Particles sprite (alpha), which allows to draw several identical dots or bitmaps with varying colour and orientation</translate>
 
{|-
 
{|-
 
| style="width: 50%; vertical-align:top;"|
 
| style="width: 50%; vertical-align:top;"|
=== Methods ===
+
=== <translate>Methods</translate> ===
 
[[Special:MyLanguage/Particles.new|Particles.new]] ''<translate>Create new particles group</translate>''<br/>
 
[[Special:MyLanguage/Particles.new|Particles.new]] ''<translate>Create new particles group</translate>''<br/>
 
[[Special:MyLanguage/Particles:addParticles|Particles:addParticles]] ''<translate>Add particles</translate>''<br/>
 
[[Special:MyLanguage/Particles:addParticles|Particles:addParticles]] ''<translate>Add particles</translate>''<br/>
Line 33: Line 33:
 
[[Special:MyLanguage/Particles:setTexture|Particles:setTexture]] ''<translate>Set texture to all particles</translate>''<br/>
 
[[Special:MyLanguage/Particles:setTexture|Particles:setTexture]] ''<translate>Set texture to all particles</translate>''<br/>
 
| style="width: 50%; vertical-align:top;"|
 
| style="width: 50%; vertical-align:top;"|
=== Events ===
+
=== <translate>Events</translate> ===
=== Constants ===
+
=== <translate>Constants</translate> ===
 
|}
 
|}

Revision as of 08:28, 24 August 2018

Supported platforms:
Available since: Gideros 2016.06

Description

Particles sprite (alpha), which allows to draw several identical dots or bitmaps with varying colour and orientation

Methods

Particles.new Create new particles group
Particles:addParticles Add particles
Particles:clearTexture Clear texture for all particles
Particles:getParticleAngle get particle angle
Particles:getParticleColor Get color and alpha value of particle
Particles:getParticleDecay
Particles:getParticlePosition get position of particle
Particles:getParticleSize get size of particle in pixels
Particles:getParticleSpeed Get speed of particle
Particles:getParticleTag
Particles:getParticleTtl get initial time to live of particle
Particles:getParticles
Particles:isPaused
Particles:removeParticles Remove particles by index in table or as arguments
Particles:setParticleAngle set angle of particle
Particles:setParticleColor set color of particles
Particles:setParticleDecay
Particles:setParticlePosition set position of particle
Particles:setParticleSize set size of particle
Particles:setParticleSpeed Set speed of particles
Particles:setParticleTag
Particles:setParticleTtl set time to live
Particles:setParticlesTag
Particles:setPaused
Particles:setTexture Set texture to all particles

Events

Constants