Difference between revisions of "Shape:setLineStyle"

From GiderosMobile
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
'''Available since:''' Gideros 2011.6<br/>
+
'''<translate>Available since</translate>:''' Gideros 2011.6<br/>
=== Description ===
+
=== <translate>Description</translate> ===
 
<translate><br />
 
<translate><br />
 
Sets the line style that [[Special:MyLanguage/Shape|Shape]] object uses for subsequent drawings. The line style remains in effect until you call [[Special:MyLanguage/setLineStyle()|setLineStyle()]] function with different<br />
 
Sets the line style that [[Special:MyLanguage/Shape|Shape]] object uses for subsequent drawings. The line style remains in effect until you call [[Special:MyLanguage/setLineStyle()|setLineStyle()]] function with different<br />
Line 9: Line 9:
 
  Shape:setLineStyle(width,color,alpha)
 
  Shape:setLineStyle(width,color,alpha)
 
</source>
 
</source>
=== Parameters ===
+
=== <translate>Parameters</translate> ===
 
'''width''': (number) <translate>The width of the line. If this parameter is 0, line is not drawn.</translate> <br/>
 
'''width''': (number) <translate>The width of the line. If this parameter is 0, line is not drawn.</translate> <br/>
 
'''color''': (number, default = 0x000000) <translate>A hexadecimal color value of the line. For example, red is 0xFF0000, blue is 0x0000FF, and so on.</translate> <br/>
 
'''color''': (number, default = 0x000000) <translate>A hexadecimal color value of the line. For example, red is 0xFF0000, blue is 0x0000FF, and so on.</translate> <br/>
 
'''alpha''': (number, default = 1) <translate>The alpha value of the color of the line.</translate> <br/>
 
'''alpha''': (number, default = 1) <translate>The alpha value of the color of the line.</translate> <br/>

Revision as of 08:28, 24 August 2018

Available since: Gideros 2011.6

Description


Sets the line style that 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 width of the line. If this parameter is 0, line is not drawn.
color: (number, default = 0x000000) A hexadecimal color value of the line. For example, red is 0xFF0000, blue is 0x0000FF, and so on.
alpha: (number, default = 1) The alpha value of the color of the line.