Path2D

From GiderosMobile
Revision as of 09:12, 23 August 2018 by Hgy29 (talk | contribs)
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

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.{|- | style="width: 50%;"|

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
| style="width: 50%;"|

Events

Constants

|}