Difference between revisions of "Mesh:setColor"

From GiderosMobile
(Created page with "__NOTOC__ '''Available since:''' Gideros 2012.09<br/> === Description === <br /> Sets a color at color array. Indices are start from 1. If the color array is not large enough,...")
 
Line 6: Line 6:
 
<br />
 
<br />
 
<source lang="lua">
 
<source lang="lua">
= Mesh:setColor(icoloralpha,)
+
Mesh:setColor(i,color,alpha)
 
</source>
 
</source>
'''i:''' (number) index ''''''<br/>
+
'''i''': (number) index ''''''<br/>
'''color:''' (number) color in hexedecial value ''''''<br/>
+
'''color''': (number) color in hexedecial value ''''''<br/>
'''alpha:''' (number, default=1.0) alpha value ''''''<br/>
+
'''alpha''': (number, default=1.0) alpha value ''''''<br/>

Revision as of 10:18, 23 August 2018

Available since: Gideros 2012.09

Description


Sets a color at color array. Indices are start from 1. If the color array is not large enough, it's expanded automatically.

 Mesh:setColor(i,color,alpha)

'i: (number) index '
'color: (number) color in hexedecial value '
'alpha: (number, default=1.0) alpha value '