Difference between revisions of "Mesh:getColor"

From GiderosMobile
(Created page with "__NOTOC__ '''Available since:''' Gideros 2013.06<br/> === Description === Returns color and alpha of the i-th element from color array <source lang="lua"> (number) (number), =...")
 
m (Text replacement - "</source>" to "</syntaxhighlight>")
 
(10 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 ===
Returns color and alpha of the i-th element from color array
+
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>
'''i:''' (number) index ''''''<br/>
+
 
 +
=== Parameters ===
 +
'''i''': (number) index<br/>
 +
 
 +
=== Return values ===
 
'''Returns''' (number) color<br/>
 
'''Returns''' (number) color<br/>
'''Returns''' (number) normalizes alpha (0-1)<br/>
+
'''Returns''' (number) normalized alpha (0-1)<br/>
 +
 
 +
{{Mesh}}

Latest revision as of 14:31, 13 July 2023