Difference between revisions of "Path2D:setLineThickness"

From GiderosMobile
(removed language stuff)
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
<languages />
+
'''Available since:''' Gideros 2016.04<br/>
'''<translate>Available since</translate>:''' Gideros 2016.04<br/>
+
'''Class:''' [[Path2D]]<br/>
'''<translate>Class</translate>:''' [[Special:MyLanguage/Path2D|Path2D]]<br/>
+
 
=== <translate>Description</translate> ===
+
=== Description ===
<translate>Sets the thickness (width) of the outline, and optionnally set the amount of 'feather' effect.</translate>
+
Sets the thickness (width) of the outline, and optionnally sets the amount of 'feather' effect.
 
<source lang="lua">
 
<source lang="lua">
Path2D:setLineThickness(thickness,feather)
+
Path2D:setLineThickness(thickness,feather)
 
</source>
 
</source>
=== <translate>Parameters</translate> ===
+
 
'''thickness''': (number) <translate>line thickness in sprite coordinates units</translate> <br/>
+
=== Parameters ===
'''feather''': (number) <translate>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.</translate> '''optional'''<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/>
  
 
{{Path2D}}
 
{{Path2D}}

Revision as of 19:05, 12 March 2021

Available since: Gideros 2016.04
Class: Path2D

Description

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

Path2D:setLineThickness(thickness,feather)

Parameters

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