Method: Magick::RVG::ShapeConstructors#circle

Defined in:
lib/rvg/embellishable.rb

#circle(r, cx = 0, cy = 0) ⇒ Object

Draws a circle whose center is [cx, cy] and radius is r.

[View source]

264
265
266
267
268
# File 'lib/rvg/embellishable.rb', line 264

def circle(r, cx=0, cy=0)
    circle = Circle.new(r, cx, cy)
    @content << circle
    return circle
end