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


160
161
162
163
# File 'lib/gd2/canvas.rb', line 160

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