class GD2::Canvas::Ellipse

Public Class Methods

new(center, width, height) click to toggle source
# File lib/gd2/canvas.rb, line 148
def initialize(center, width, height)
  @center, @width, @height = center, width, height
end

Public Instance Methods

draw(image, mode) click to toggle source
# File lib/gd2/canvas.rb, line 152
def draw(image, mode)
  ::GD2::GD2FFI.send(:gdImageArc, image.image_ptr, @center.x.to_i, @center.y.to_i,
    @width.to_i, @height.to_i, 0, 360, mode.to_i)
  nil
end