Difference between revisions of "Particles:setParticleColor"

From GiderosMobile
m (Text replacement - "</source>" to "</syntaxhighlight>")
 
(7 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(i,color,alpha)
+
Particles:setParticleColor(i,color,alpha)
</source>
+
</syntaxhighlight>
 +
 
 
=== Parameters ===
 
=== Parameters ===
'''i''': (number) particle index <br/>
+
'''i''': (number) particle index<br/>
'''color''': (number) hex value of color <br/>
+
'''color''': (number) color in hex value<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/>
 +
 +
{{Particles}}

Latest revision as of 14:32, 13 July 2023