Method: QuickMagick::Image#draw_arc
- Defined in:
- lib/quick_magick/image.rb
#draw_arc(x0, y0, x1, y1, a0, a1, options = {}) ⇒ Object
The arc primitive is used to inscribe an elliptical segment in to a given rectangle. An arc requires the two corners used for rectangle (see above) followed by the start and end angles of the arc of the segment segment (e.g. 130,30 200,100 45,90). The start and end points produced are then joined with a line segment and the resulting segment of an ellipse is filled.
293 294 295 |
# File 'lib/quick_magick/image.rb', line 293 def draw_arc(x0, y0, x1, y1, a0, a1, ={}) append_to_operators("draw", "#{options_to_str(options)} arc #{x0},#{y0} #{x1},#{y1} #{a0},#{a1}") end |