Checks if the path is empty and has no commands.
Adds an arc segment at the corner defined by the last path point, and two specified points.
Options object for the function call.
Creates new rounded rectangle shaped sub-path.
Options object for the function call.
Sets the composite operation. See for valid values.
Enables reading a stencil mask previously written using SetWriteMask for the shapes that were drawn using that write mask. The operation has 2 modes: one in which only the pixels that have the stencil value, i.e. intersection, and the second one in which pixels that do not have that mask will pass, i.e. the difference of shapes. Only fill commands will be affected by this setting.
The mask value to compare against
If set, the intersection will pass, else the difference will pass
Sets the current sub-path winding.
Enables writing a stencil mask for the shapes that will be rendered after this call. Only fill commands will write masks. To draw the shapes, just do it normally, the Path will make sure the stencil masking is enabled.
The mask value to write to the stencil
A boolean flag which enables or disables writing color to the framebuffer While the mask operation is set. If set, colors will not be outputed, else colors will be written.
A vector path. Can be used to build curves and shapes using vector paths rather than pixels.
The path uses even-odd fill rule to draw the shapes. Solid shapes should have counter clockwise winding and holes should have counter clockwise order. To specify winding of a path you can call This is useful especially for the common shapes, which are drawn counter-clockwise.
Filling and stroking are executed using a The describes a solid color or a gradient. You can set the paint by calling or
You can use scissors to cut a part from a shape. This can be useful when you have a path, but only wants to use a section of it. You can set a scissor by calling You can reset any scissor by calling
You can close any path, at any time, by calling Sub-paths are closed with a straight line to its first point.
Paths can be rendered to a texture. To render a path to a texture you need to first convert it into a
The object holds the list of all commands that need to be executed by the system to render the required shape. You can submit a shape for rendering using it's method. See in how to render the shape object.