Method: Magick::RVG::ShapeConstructors#line

Defined in:
lib/rvg/embellishable.rb

#line(x1 = 0, y1 = 0, x2 = 0, y2 = 0) ⇒ Object

Draws a line from [x1, y1] to [x2, y2].

[View source]

279
280
281
282
283
# File 'lib/rvg/embellishable.rb', line 279

def line(x1=0, y1=0, x2=0, y2=0)
    line = Line.new(x1, y1, x2, y2)
    @content << line
    return line
end