Difference between revisions of "Path2D:setLineThickness"
From GiderosMobile
(removed language stuff) |
m (Text replacement - "<source" to "<syntaxhighlight") |
||
Line 5: | Line 5: | ||
=== Description === | === Description === | ||
Sets the thickness (width) of the outline, and optionnally sets the amount of 'feather' effect. | Sets the thickness (width) of the outline, and optionnally sets the amount of 'feather' effect. | ||
− | < | + | <syntaxhighlight lang="lua"> |
Path2D:setLineThickness(thickness,feather) | Path2D:setLineThickness(thickness,feather) | ||
</source> | </source> |
Revision as of 14:30, 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. <syntaxhighlight lang="lua"> Path2D:setLineThickness(thickness,feather) </source>
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