Difference between revisions of "Particles:setParticleColor"

From GiderosMobile
m (Text replacement - "</source>" to "</syntaxhighlight>")
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
'''<translate>Available since</translate>:''' Gideros 2016.06<br/>
+
'''Available since:''' Gideros 2016.06<br/>
'''<translate>Class</translate>:''' [[Special:MyLanguage/Particles|Particles]]<br/>
+
'''Class:''' [[Particles]]<br/>
=== <translate>Description</translate> ===
+
 
<translate>set color of particles</translate>
+
=== Description ===
<source lang="lua">
+
Sets a color to a particle at index ''i''.
Particles:setParticleColor(i,color,alpha)
+
<syntaxhighlight lang="lua">
</source>
+
Particles:setParticleColor(i,color,alpha)
=== <translate>Parameters</translate> ===
+
</syntaxhighlight>
'''i''': (number) <translate>particle index</translate> <br/>
+
 
'''color''': (number) <translate>hex value of color</translate> <br/>
+
=== Parameters ===
'''alpha''': (number) <translate>alpha value from 0 to 1, default 1</translate> '''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