Difference between revisions of "Mesh:getColor"
From GiderosMobile
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
− | '''Available since:''' Gideros 2013.06<br/> | + | '''<translate>Available since</translate>:''' Gideros 2013.06<br/> |
− | === Description === | + | === <translate>Description</translate> === |
<translate>Returns color and alpha of the i-th element from color array</translate> | <translate>Returns color and alpha of the i-th element from color array</translate> | ||
<source lang="lua"> | <source lang="lua"> | ||
(number), (number) = Mesh:getColor(i) | (number), (number) = Mesh:getColor(i) | ||
</source> | </source> | ||
− | === Parameters === | + | === <translate>Parameters</translate> === |
'''i''': (number) <translate>index</translate> <br/> | '''i''': (number) <translate>index</translate> <br/> | ||
− | === Return values === | + | === <translate>Return values</translate> === |
− | '''Returns''' (number) <translate>color</translate><br/> | + | '''<translate>Returns</translate>''' (number) <translate>color</translate><br/> |
− | '''Returns''' (number) <translate>normalizes alpha (0-1)</translate><br/> | + | '''<translate>Returns</translate>''' (number) <translate>normalizes alpha (0-1)</translate><br/> |
Revision as of 07:30, 24 August 2018
Available since: Gideros 2013.06
Description
Returns color and alpha of the i-th element from color array
(number), (number) = Mesh:getColor(i)
Parameters
i: (number) index
Return values
Returns (number) color
Returns (number) normalizes alpha (0-1)