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:...")
 
m (Text replacement - "</source>" to "</syntaxhighlight>")
 
(9 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 ===
set color of particles
+
Sets a color to a particle at index ''i''.
<source lang="lua">
+
<syntaxhighlight lang="lua">
= Particles:setParticleColor(icoloralpha,)
+
Particles:setParticleColor(i,color,alpha)
</source>
+
</syntaxhighlight>
'''i:''' (number) particle index ''''''<br/>
+
 
'''color:''' (number) hex value of color ''''''<br/>
+
=== Parameters ===
'''alpha:''' (number) alpha value from 0 to 1, default 1 '''optional'''<br/>
+
'''i''': (number) particle index<br/>
 +
'''color''': (number) color in hex value<br/>
 +
'''alpha''': (number) alpha value from 0 to 1, default 1 '''optional'''<br/>
 +
 
 +
{{Particles}}

Latest revision as of 14:32, 13 July 2023