Difference between revisions of "Shape:setFillStyle"

From GiderosMobile
(Created page with "__NOTOC__ '''Available since:''' Gideros 2011.6<br/> === Description === <br /> Sets the fill style that `Shape` object uses for subsequent drawings. The fill style remains in...")
 
Line 17: Line 17:
 
<br />
 
<br />
 
<source lang="lua">
 
<source lang="lua">
= Shape:setFillStyle(type...,)
+
Shape:setFillStyle(type,...)
 
</source>
 
</source>
 
'''type:''' (string) The type of the fill. Can be one of the Shape.NONE, Shape.SOLID or Shape.TEXTURE. ''''''<br/>
 
'''type:''' (string) The type of the fill. Can be one of the Shape.NONE, Shape.SOLID or Shape.TEXTURE. ''''''<br/>
 
'''...:''' (any) Parameters of the fill style. ''''''<br/>
 
'''...:''' (any) Parameters of the fill style. ''''''<br/>

Revision as of 11:11, 23 August 2018

Available since: Gideros 2011.6

Description


Sets the fill style that `Shape` object uses for subsequent drawings. The fill style remains in effect until you call `setFillStyle()` function with different
parameters.

`type` parameter can be one of the following values:

<ul>
<li>**Shape.NONE:** Clears the fill style.</li>
<li>**Shape.SOLID:** Sets the fill style as a solid color. In this mode, the parameters are color (in hexedecial value) and an optional alpha value.</li>
<li>**Shape.TEXTURE:** Sets the fill style as a textured. In this mode, the parameters are texture and an optional transformation matrix.</li>
</ul>

See the following example for more detailed usage of this function.

 Shape:setFillStyle(type,...)

'type: (string) The type of the fill. Can be one of the Shape.NONE, Shape.SOLID or Shape.TEXTURE. '
'...: (any) Parameters of the fill style. '