Method: PDF::Writer::Graphics#line

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

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

Draw a straight line from (x0, y0) to (x1, y1). The line is a new subpath.

New Point

(x1, y1).

Subpath

New



189
190
191
# File 'lib/extensions/pdf-writer/pdf/writer/graphics.rb', line 189

def line(x0, y0, x1, y1)
  move_to(x0, y0).line_to(x1, y1)
end