Shape:setLineStyle: Difference between revisions
From GiderosMobile
No edit summary |
remove language stuff |
||
| Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
'''Available since:''' Gideros 2011.6<br/> | |||
''' | '''Class:''' [[Shape]]<br/> | ||
''' | |||
=== | === Description === | ||
Sets the line style the '''Shape''' object uses for subsequent drawings. The line style remains in effect until you call ''setLineStyle()'' function with different parameters. | |||
Sets the line style | |||
parameters. | |||
<source lang="lua"> | <source lang="lua"> | ||
Shape:setLineStyle(width,color,alpha) | |||
</source> | </source> | ||
=== | |||
'''width''': (number) | === Parameters === | ||
'''color''': (number, default = | '''width''': (number) the line width. If this parameter is 0, line is not drawn<br/> | ||
'''alpha''': (number, default = 1) | '''color''': (number, default = 0x0) the hexadecimal color value of the line<br/> | ||
'''alpha''': (number, default = 1) the alpha value of the line color<br/> | |||
{{Shape}} | {{Shape}} | ||
Revision as of 00:27, 25 January 2021
Available since: Gideros 2011.6
Class: Shape
Description
Sets the line style the Shape object uses for subsequent drawings. The line style remains in effect until you call setLineStyle() function with different parameters.
Shape:setLineStyle(width,color,alpha)
Parameters
width: (number) the line width. If this parameter is 0, line is not drawn
color: (number, default = 0x0) the hexadecimal color value of the line
alpha: (number, default = 1) the alpha value of the line color