Class: GD2::Canvas::FilledEllipse

Inherits:
Ellipse
  • Object
show all
Defined in:
lib/gd2/canvas.rb

Instance Method Summary collapse

Methods inherited from Ellipse

#initialize

Constructor Details

This class inherits a constructor from GD2::Canvas::Ellipse

Instance Method Details

#draw(image, mode) ⇒ Object



178
179
180
181
# File 'lib/gd2/canvas.rb', line 178

def draw(image, mode)
  GD2FFI.send(:gdImageFilledEllipse, image.image_ptr, @center.x.to_i, @center.y.to_i,
    @width.to_i, @height.to_i, mode.to_i)
end