Difference between revisions of "Mesh:getColor"

From GiderosMobile
Line 2: Line 2:
 
'''Available since:''' Gideros 2013.06<br/>
 
'''Available since:''' Gideros 2013.06<br/>
 
=== Description ===
 
=== Description ===
Returns color and alpha of the i-th element from color array
+
<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 ===
 
=== Parameters ===
'''i''': (number) index <br/>
+
'''i''': (number) <translate>index</translate> <br/>
 
=== Return values ===
 
=== Return values ===
'''Returns''' (number) color<br/>
+
'''Returns''' (number) <translate>color</translate><br/>
'''Returns''' (number) normalizes alpha (0-1)<br/>
+
'''Returns''' (number) <translate>normalizes alpha (0-1)</translate><br/>

Revision as of 13:38, 23 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)