class Magick::RVG::Line
Public Class Methods
new(x1 = 0, y1 = 0, x2 = 0, y2 = 0)
click to toggle source
Define a line from [x1
, y1
] to [x2
, y2
]. Use
the RVG::ShapeConstructors#line
method to create Line
objects in a container.
Calls superclass method
Magick::RVG::Transformable::new
# File lib/rvg/embellishable.rb, line 55 def initialize(x1 = 0, y1 = 0, x2 = 0, y2 = 0) super() @primitive = :line @args = [x1, y1, x2, y2] end