Difference between revisions of "Particles:setParticleColor"

From GiderosMobile
m (Text replacement - "</source>" to "</syntaxhighlight>")
 
(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>set color of particles</translate>
+
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) <translate>particle index</translate> <br/>
+
'''i''': (number) particle index<br/>
'''color''': (number) <translate>hex value of color</translate> <br/>
+
'''color''': (number) color in hex value<br/>
'''alpha''': (number) <translate>alpha value from 0 to 1, default 1</translate> '''optional'''<br/>
+
'''alpha''': (number) alpha value from 0 to 1, default 1 '''optional'''<br/>
 +
 
 +
{{Particles}}

Latest revision as of 15:32, 13 July 2023