Difference between revisions of "Particles:setParticleColor"

From GiderosMobile
(Created page with "__NOTOC__ '''Available since:''' Gideros 2016.06<br/> === Description === set color of particles <source lang="lua"> = Particles:setParticleColor(icoloralpha,) </source> '''i:...")
 
Line 4: Line 4:
 
set color of particles
 
set color of particles
 
<source lang="lua">
 
<source lang="lua">
= Particles:setParticleColor(icoloralpha,)
+
Particles:setParticleColor(i,color,alpha)
 
</source>
 
</source>
'''i:''' (number) particle index ''''''<br/>
+
'''i''': (number) particle index ''''''<br/>
'''color:''' (number) hex value of color ''''''<br/>
+
'''color''': (number) hex value of color ''''''<br/>
'''alpha:''' (number) alpha value from 0 to 1, default 1 '''optional'''<br/>
+
'''alpha''': (number) alpha value from 0 to 1, default 1 '''optional'''<br/>

Revision as of 11:17, 23 August 2018

Available since: Gideros 2016.06

Description

set color of particles

 Particles:setParticleColor(i,color,alpha)

'i: (number) particle index '
'color: (number) hex value of color '
alpha: (number) alpha value from 0 to 1, default 1 optional