Method: PDF::Writer::Graphics#line_to
- Defined in:
- lib/pdf/writer/graphics.rb
#line_to(x, y) ⇒ Object
Draw a straight line from the drawing point to (x, y).
- New Point
-
(x, y) - Subpath
-
Current
146 147 148 149 |
# File 'lib/pdf/writer/graphics.rb', line 146 def line_to(x, y) add_content("\n%.3f %.3f l" % [ x, y ]) self end |