Difference between revisions of "Shape:setLineStyle"

From GiderosMobile
m (Text replacement - "</source>" to "</syntaxhighlight>")
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
'''<translate>Available since</translate>:''' Gideros 2011.6<br/>
+
'''Available since:''' Gideros 2011.6<br/>
'''<translate>Class</translate>:''' [[Special:MyLanguage/Shape|Shape]]<br/>
+
'''Class:''' [[Shape]]<br/>
=== <translate>Description</translate> ===
+
 
<translate><br />
+
=== Description ===
Sets the line style that [[Special:MyLanguage/Shape|Shape]] object uses for subsequent drawings. The line style remains in effect until you call ''setLineStyle()'' function with different<br />
+
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.
parameters.<br />
+
<syntaxhighlight lang="lua">
<br /></translate>
+
Shape:setLineStyle(width,color,alpha)
<source lang="lua">
+
</syntaxhighlight>
Shape:setLineStyle(width,color,alpha)
+
 
</source>
+
=== Parameters ===
=== <translate>Parameters</translate> ===
+
'''width''': (number) the line width. If this parameter is 0, line is not drawn<br/>
'''width''': (number) <translate>The width of the line. If this parameter is 0, line is not drawn.</translate> <br/>
+
'''color''': (number, default = 0x0) the hexadecimal color value of the line<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) the alpha value of the line color<br/>
'''alpha''': (number, default = 1) <translate>The alpha value of the color of the line.</translate> <br/>
+
 
 +
{{Shape}}

Latest revision as of 14:31, 13 July 2023

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