Difference between revisions of "Path2D:setLineThickness"

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

Revision as of 07:28, 24 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)

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