Parent

Methods

Files

GD2::Canvas::Ellipse

Public Class Methods

new(center, width, height) click to toggle source
# File lib/gd2/canvas.rb, line 166
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 170
def draw(image, mode)
  SYM[:gdImageArc].call(image.image_ptr, @center.x, @center.y,
    @width, @height, 0, 360, mode)
  nil
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.