Define an ellipse with a center at [cx, cy], a horizontal radius rx and a vertical radius ry. Use the RVG::ShapeConstructors#ellipse method to create Ellipse objects in a container.
# File lib/rvg/embellishable.rb, line 48 48: def initialize(rx, ry, cx=0, cy=0) 49: super() 50: rx, ry, cx, cy = Magick::RVG.convert_to_float(rx, ry, cx, cy) 51: if rx < 0 || ry < 0 52: raise ArgumentError, "radii must be >= 0 (#{rx}, #{ry} given)" 53: end 54: @primitive = :ellipse 55: # Ellipses are always complete. 56: @args = [cx, cy, rx, ry, 0, 360] 57: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.