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