Difference between revisions of "Path2D"

From GiderosMobile
(Created page with "__NOTOC__ '''Supported platforms:''' <br/> '''Available since:''' Gideros 2016.04<br/> === Description === Draw quick 2D vector paths. This class aims at being a faster altern...")
 
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 ===
 +
[[Path2D.new]] - Creates Path2D object<br/>
 +
[[Path2D:setConvex]] - Flag the shape as convex.<br/>
 +
[[Path2D:setFillColor]] - Sets fill color<br/>
 +
[[Path2D:setFontPath]] - Sets the path from the outline of a TTFont character<br/>
 +
[[Path2D:setLineColor]] - Sets line color<br/>
 +
[[Path2D:setLineThickness]] - Set the thickness of the outline<br/>
 +
[[Path2D:setPath]] - set path to draw<br/>
 +
[[Path2D:setSvgPath]] - set path with svg properties<br/>
 +
[[Path2D:setTexture]] - sets texture for fill<br/>
 
| style="width: 50%;"|
 
| style="width: 50%;"|
 
=== Events ===
 
=== Events ===
 
=== Constants ===
 
=== Constants ===
 
|}
 
|}

Revision as of 08:57, 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