Path2D:setLineThickness: Difference between revisions
From GiderosMobile
No edit summary |
m Text replacement - "</source>" to "</syntaxhighlight>" |
||
| (2 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
'''Available since:''' Gideros 2016.04<br/> | |||
''' | '''Class:''' [[Path2D]]<br/> | ||
''' | |||
=== | === Description === | ||
Sets the thickness (width) of the outline, and optionnally sets the amount of 'feather' effect. | |||
< | <syntaxhighlight lang="lua"> | ||
Path2D:setLineThickness(thickness,feather) | |||
</ | </syntaxhighlight> | ||
=== | |||
'''thickness''': (number) | === Parameters === | ||
'''feather''': (number) | '''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}} | ||
Latest revision as of 13:32, 13 July 2023
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