Class: Magick::RVG::Line
- Inherits:
-
Shape
- Object
- Shape
- Magick::RVG::Line
- Defined in:
- lib/rvg/embellishable.rb
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 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.
55 56 57 58 59 |
# 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 |