| Class | Magick::RVG::Line |
| In: |
lib/rvg/embellishable.rb
|
| Parent: | Shape |
Define a line from [x1, y1] to [x2, y2]. Use the RVG::ShapeConstructors#line method to create Line objects in a container.
# File lib/rvg/embellishable.rb, line 64
64: def initialize(x1=0, y1=0, x2=0, y2=0)
65: super()
66: @primitive = :line
67: @args = [x1, y1, x2, y2]
68: end