Method: PDF::Writer::Graphics#scurve
- Defined in:
- lib/extensions/pdf-writer/pdf/writer/graphics.rb
#scurve(x0, y0, x1, y1, x2, y2) ⇒ Object
Draw a cubic Bezier curve from (x0, y0) to (x2, y2) using (x0, y0) and (x1, y1) as control points.
- New Point
-
(x2, y2) - Subpath
-
New
207 208 209 |
# File 'lib/extensions/pdf-writer/pdf/writer/graphics.rb', line 207 def scurve(x0, y0, x1, y1, x2, y2) move_to(x0, y0).scurve_to(x1, y1, x2, y2) end |