Method: PDF::Writer::Graphics#scurve_to

Defined in:
lib/extensions/pdf-writer/pdf/writer/graphics.rb

#scurve_to(x0, y0, x1, y1) ⇒ Object

Draws a cubic Bezier curve from the drawing point to (x1, y1) using the drawing point and (x0, y0) as the control points for the curve.

New Point

(x1, y1)

Subpath

Current



168
169
170
171
# File 'lib/extensions/pdf-writer/pdf/writer/graphics.rb', line 168

def scurve_to(x0, y0, x1, y1)
  add_content("\n%.3f %.3f %.3f %.3f v" % [ x0, y0, x1, y1 ])
  self
end