Class Magick::RVG::PathData
In: lib/rvg/pathdata.rb
Parent: Object

The PathData class provides an object-oriented way to produce an SVG path. Each of the methods corresponds to a path command. Construct a path by calling one or more methods. The path object can be passed as an argument to the RVG::ShapeConstructors#path method.

Methods

Public Class methods

Construct an empty path

Public Instance methods

Add an arc command. If abs is true the coordinates are absolute, otherwise the coordinates are relative.

Add a closepath command. The abs argument is ignored.

Add a curveto (cubic Bezier) command. If abs is true the coordinates are absolute, otherwise the coordinates are relative.

Add a horizontal lineto command. If abs is true the coordinates are absolute, otherwise the coordinates are relative.

Add a lineto command. Any number of x,y coordinate pairs may be specified. If abs is true the coordinates are absolute, otherwise the coordinates are relative.

Add a moveto command. If abs is true the coordinates are absolute, otherwise the coordinates are relative.

Add a quadratic Bezier curveto command. If abs is true the coordinates are absolute, otherwise the coordinates are relative.

Add a smooth curveto (cubic Bezier) command. If abs is true the coordinates are absolute, otherwise the coordinates are relative.

Add a smooth quadratic Bezier curveto command. If abs is true the coordinates are absolute, otherwise the coordinates are relative.

Convert the path to its string equivalent.

Add a vertical lineto command. If abs is true the coordinates are absolute, otherwise the coordinates are relative.

[Validate]