Difference between revisions of "Path2D:setLineThickness"

From GiderosMobile
(Created page with "__NOTOC__ '''Available since:''' Gideros 2016.04<br/> === Description === Sets the thickness (width) of the outline, and optionnally set the amount of 'feather' effect. <sourc...")
 
Line 4: Line 4:
 
Sets the thickness (width) of the outline, and optionnally set the amount of 'feather' effect.
 
Sets the thickness (width) of the outline, and optionnally set the amount of 'feather' effect.
 
<source lang="lua">
 
<source lang="lua">
= Path2D:setLineThickness(thicknessfeather,)
+
Path2D:setLineThickness(thickness,feather)
 
</source>
 
</source>
'''thickness:''' (number) line thickness in sprite coordinates units ''''''<br/>
+
'''thickness''': (number) line thickness in sprite coordinates units ''''''<br/>
'''feather:''' (number) Sets the amount of 'feather' effect, i.e. the ratio of the line thickness that will be blurred with background. Values range from 0 (sharp edges) to 1. '''optional'''<br/>
+
'''feather''': (number) Sets the amount of 'feather' effect, i.e. the ratio of the line thickness that will be blurred with background. Values range from 0 (sharp edges) to 1. '''optional'''<br/>

Revision as of 11:20, 23 August 2018

Available since: Gideros 2016.04

Description

Sets the thickness (width) of the outline, and optionnally set the amount of 'feather' effect.

 Path2D:setLineThickness(thickness,feather)

'thickness: (number) line thickness in sprite coordinates units '
feather: (number) Sets the amount of 'feather' effect, i.e. the ratio of the line thickness that will be blurred with background. Values range from 0 (sharp edges) to 1. optional