Difference between revisions of "Mesh:getColor"

From GiderosMobile
m (Text replacement - "</source>" to "</syntaxhighlight>")
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
 
'''Available since:''' Gideros 2013.06<br/>
 
'''Available since:''' Gideros 2013.06<br/>
 +
'''Class:''' [[Mesh]]<br/>
 +
 
=== Description ===
 
=== Description ===
<translate>Returns color and alpha of the i-th element from color array</translate>
+
Returns color and alpha of the i-th element from the color array.
<source lang="lua">
+
<syntaxhighlight lang="lua">
 
(number), (number) = Mesh:getColor(i)
 
(number), (number) = Mesh:getColor(i)
</source>
+
</syntaxhighlight>
 +
 
 
=== Parameters ===
 
=== Parameters ===
'''i''': (number) <translate>index</translate> <br/>
+
'''i''': (number) index<br/>
 +
 
 
=== Return values ===
 
=== Return values ===
'''Returns''' (number) <translate>color</translate><br/>
+
'''Returns''' (number) color<br/>
'''Returns''' (number) <translate>normalizes alpha (0-1)</translate><br/>
+
'''Returns''' (number) normalized alpha (0-1)<br/>
 +
 
 +
{{Mesh}}

Latest revision as of 14:31, 13 July 2023