Class Magick::RVG::Circle
In: lib/rvg/embellishable.rb
Parent: Shape
Enum GeometryValue Stylable RVG\n[lib/rvg/clippath.rb\nlib/rvg/container.rb\nlib/rvg/deep_equal.rb\nlib/rvg/describable.rb\nlib/rvg/embellishable.rb\nlib/rvg/misc.rb\nlib/rvg/paint.rb\nlib/rvg/pathdata.rb\nlib/rvg/rvg.rb\nlib/rvg/stretchable.rb\nlib/rvg/stylable.rb\nlib/rvg/text.rb\nlib/rvg/transformable.rb\nlib/rvg/units.rb] Transformable Stretchable Embellishable Describable Duplicatable Comparable Image ImageList Enumerable Geometry OptionalMethodArguments HatchFill Draw lib/RMagick.rb lib/rvg/container.rb ObjectData Application Pre_ObjectData_Descriptor Envelope Post_ObjectData_Descriptor IPTC Magick dot/m_14_0.png

Methods

new  

Public Class methods

Define a circle with radius r and centered at [cx, cy]. Use the RVG::ShapeConstructors#circle method to create Circle objects in a container.

[Source]

    # File lib/rvg/embellishable.rb, line 30
30:             def initialize(r, cx=0, cy=0)
31:                 super()
32:                 r, cx, cy = Magick::RVG.convert_to_float(r, cx, cy)
33:                 if r < 0
34:                     raise ArgumentError, "radius must be >= 0 (#{r} given)"
35:                 end
36:                 @primitive = :circle
37:                 @args = [cx, cy, cx+r, cy]
38:                 self
39:             end

[Validate]