class GD2::Canvas::Text

Public Class Methods

new(font, point, angle, string) click to toggle source
# File lib/gd2/canvas.rb, line 167
def initialize(font, point, angle, string)
  @font = font
  @point = point
  @angle = angle
  @string = string
end

Public Instance Methods

draw(image, color) click to toggle source
# File lib/gd2/canvas.rb, line 174
def draw(image, color)
  @font.draw(image.image_ptr, @point.x, @point.y, @angle, @string, color)
end