Difference between revisions of "Particles:getParticleColor"

From GiderosMobile
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
 
'''Available since:''' Gideros 2016.06<br/>
 
'''Available since:''' Gideros 2016.06<br/>
 +
'''Class:''' [[Particles]]<br/>
 +
 
=== Description ===
 
=== Description ===
<translate>Get color and alpha value of particle</translate>
+
Gets color and alpha value of a particle.
<source lang="lua">
+
<syntaxhighlight lang="lua">
 
(color), (alpha) = Particles:getParticleColor(i)
 
(color), (alpha) = Particles:getParticleColor(i)
</source>
+
</syntaxhighlight>
 +
 
 
=== Parameters ===
 
=== Parameters ===
'''i''': (number) <translate>particle index</translate> <br/>
+
'''i''': (number) particle index<br/>
 +
 
 
=== Return values ===
 
=== Return values ===
'''Returns''' (color) <translate>color value</translate><br/>
+
'''Returns''' (color) color value<br/>
'''Returns''' (alpha) <translate>alpha value from 0 to 1</translate><br/>
+
'''Returns''' (alpha) alpha value from 0 to 1<br/>
 +
 
 +
{{Particles}}

Latest revision as of 20:34, 21 September 2023