module

Draw::PathBuilder

PathBuilder describes the interface for path drawing.

Instance methods

arc_to(cx : Float64, cy : Float64, rx : Float64, ry : Float64, start_angle : Float64, angle : Float64)

Adds an arc to the current subpath

Source
close

Creates a line from the current point to the last MoveTo point (if not the same) and mark the path as closed so the first and last lines join nicely.

Source
cubic_curve_to(cx1 : Float64, cy1 : Float64, cx2 : Float64, cy2 : Float64, x : Float64, y : Float64)

Adds a cubic Bézier curve to the current subpath

Source
last_point

Returns the current point of the current sub path

Source
line_to(x : Float64, y : Float64)

Adds a line to the current subpath

Source
move_to(x : Float64, y : Float64)

Creates a new subpath that start at the specified point

Source
quad_curve_to(cx : Float64, cy : Float64, x : Float64, y : Float64)

Adds a quadratic Bézier curve to the current subpath

Source