class GD2::Canvas::TextCircle
Public Class Methods
new(font, point, radius, text_radius, fill_portion, top, bottom)
click to toggle source
# File lib/gd2/canvas.rb, line 198 def initialize(font, point, radius, text_radius, fill_portion, top, bottom) @font = font @point = point @radius = radius @text_radius = text_radius @fill_portion = fill_portion @top = top @bottom = bottom end
Public Instance Methods
draw(image, color)
click to toggle source
# File lib/gd2/canvas.rb, line 209 def draw(image, color) @font.draw_circle(image.image_ptr, @point.x, @point.y, @radius, @text_radius, @fill_portion, @top, @bottom, color) end