Class: Magick::RVG::Line
Overview
class Ellipse
Instance Method Summary collapse
-
#initialize(x1 = 0, y1 = 0, x2 = 0, y2 = 0) ⇒ Line
constructor
Define a line from [
x1
,y1
] to [x2
,y2
].
Methods inherited from Shape
Methods included from Duplicatable
Methods included from Transformable
#matrix, #rotate, #scale, #skewX, #skewY, #translate
Methods included from Stylable
Constructor Details
#initialize(x1 = 0, y1 = 0, x2 = 0, y2 = 0) ⇒ Line
Define a line from [x1
, y1
] to [x2
, y2
]. Use the RVG::ShapeConstructors#line method to create Line objects in a container.
58 59 60 61 62 |
# File 'lib/rvg/embellishable.rb', line 58 def initialize(x1=0, y1=0, x2=0, y2=0) super() @primitive = :line @args = [x1, y1, x2, y2] end |