Class: Magick::RVG::Line

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

Overview

class Ellipse

Instance Method Summary collapse

Methods inherited from Shape

#add_primitives

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.


65
66
67
68
69
# File 'lib/rvg/embellishable.rb', line 65

def initialize(x1=0, y1=0, x2=0, y2=0)
    super()
    @primitive = :line
    @args = [x1, y1, x2, y2]
end