Path2D

Revision as of 11:05, 23 August 2018 by Hgy29 (talk | contribs)

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