Difference between revisions of "Shape:setLineStyle"

From GiderosMobile
(remove language stuff)
m (Text replacement - "<source" to "<syntaxhighlight")
Line 5: Line 5:
 
=== Description ===
 
=== 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 the '''Shape''' object uses for subsequent drawings. The line style remains in effect until you call ''setLineStyle()'' function with different parameters.
<source lang="lua">
+
<syntaxhighlight lang="lua">
 
Shape:setLineStyle(width,color,alpha)
 
Shape:setLineStyle(width,color,alpha)
 
</source>
 
</source>

Revision as of 15:30, 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. <syntaxhighlight lang="lua"> Shape:setLineStyle(width,color,alpha) </source>

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