| 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 65
65: def initialize(x1=0, y1=0, x2=0, y2=0)
66: super()
67: @primitive = :line
68: @args = [x1, y1, x2, y2]
69: end