Difference between revisions of "Path2D"

From GiderosMobile
Line 3: Line 3:
 
'''Available since:''' Gideros 2016.04<br/>
 
'''Available since:''' Gideros 2016.04<br/>
 
=== Description ===
 
=== Description ===
Draw quick 2D vector paths. This class aims at being a faster alternative to Shape for complex/curvy shapes.{|-
+
Draw quick 2D vector paths. This class aims at being a faster alternative to Shape for complex/curvy shapes.
 +
{|-
 
| style="width: 50%;"|
 
| style="width: 50%;"|
 
=== Methods ===
 
=== Methods ===

Revision as of 10:05, 23 August 2018

Supported platforms:
Available since: Gideros 2016.04

Description

Draw quick 2D vector paths. This class aims at being a faster alternative to Shape for complex/curvy shapes.

Methods

Path2D.new - Creates Path2D object
Path2D:setConvex - Flag the shape as convex.
Path2D:setFillColor - Sets fill color
Path2D:setFontPath - Sets the path from the outline of a TTFont character
Path2D:setLineColor - Sets line color
Path2D:setLineThickness - Set the thickness of the outline
Path2D:setPath - set path to draw
Path2D:setSvgPath - set path with svg properties
Path2D:setTexture - sets texture for fill

Events

Constants