CrImage::Draw::Path
Path is an SVG-like path builder for complex shapes.
Supports move_to, line_to, quadratic bezier, cubic bezier, and close commands. Paths can be filled or stroked.
Example:
path = CrImage::Draw::Path.new
.move_to(100, 100)
.line_to(200, 100)
.bezier_to(250, 100, 250, 150, 200, 150)
.line_to(100, 150)
.close
CrImage::Draw.fill_path(img, path, CrImage::Color::RED)
Constructors
Instance methods
Draw a cubic bezier curve to (x, y) with control points (c1x, c1y) and (c2x, c2y).
commands
SourceAlias for bezier_to