Class: Magick::RVG::Line

Inherits:
Shape
  • Object
show all
Defined in:
lib/rvg/embellishable.rb

Overview

class Ellipse

Instance Method Summary collapse

Methods included from Duplicatable

#deep_copy

Methods included from Transformable

#matrix, #rotate, #scale, #skewX, #skewY, #translate

Methods included from Stylable

#styles

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