Difference between revisions of "Particles:getParticleColor"

From GiderosMobile
(Created page with "__NOTOC__ '''Available since:''' Gideros 2016.06<br/> === Description === Get color and alpha value of particle <source lang="lua"> (color) (alpha), = Particles:getParticleCol...")
 
Line 4: Line 4:
 
Get color and alpha value of particle
 
Get color and alpha value of particle
 
<source lang="lua">
 
<source lang="lua">
(color) (alpha), = Particles:getParticleColor(i,)
+
(color), (alpha) = Particles:getParticleColor(i)
 
</source>
 
</source>
'''i:''' (number) particle index ''''''<br/>
+
'''i''': (number) particle index ''''''<br/>
 
'''Returns''' (color) color value<br/>
 
'''Returns''' (color) color value<br/>
 
'''Returns''' (alpha) alpha value from 0 to 1<br/>
 
'''Returns''' (alpha) alpha value from 0 to 1<br/>

Revision as of 10:20, 23 August 2018

Available since: Gideros 2016.06

Description

Get color and alpha value of particle

(color), (alpha) = Particles:getParticleColor(i)

'i: (number) particle index '
Returns (color) color value
Returns (alpha) alpha value from 0 to 1