Difference between revisions of "Particles:setParticleColor"
From GiderosMobile
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
− | '''Available since:''' Gideros 2016.06<br/> | + | '''<translate>Available since</translate>:''' Gideros 2016.06<br/> |
− | === Description === | + | === <translate>Description</translate> === |
<translate>set color of particles</translate> | <translate>set color of particles</translate> | ||
<source lang="lua"> | <source lang="lua"> | ||
Particles:setParticleColor(i,color,alpha) | Particles:setParticleColor(i,color,alpha) | ||
</source> | </source> | ||
− | === Parameters === | + | === <translate>Parameters</translate> === |
'''i''': (number) <translate>particle index</translate> <br/> | '''i''': (number) <translate>particle index</translate> <br/> | ||
'''color''': (number) <translate>hex value of color</translate> <br/> | '''color''': (number) <translate>hex value of color</translate> <br/> | ||
'''alpha''': (number) <translate>alpha value from 0 to 1, default 1</translate> '''optional'''<br/> | '''alpha''': (number) <translate>alpha value from 0 to 1, default 1</translate> '''optional'''<br/> |
Revision as of 07:29, 24 August 2018
Available since: Gideros 2016.06
Description
set color of particles
Particles:setParticleColor(i,color,alpha)
Parameters
i: (number) particle index
color: (number) hex value of color
alpha: (number) alpha value from 0 to 1, default 1 optional