Class: Painter::Line

Inherits:
Operation show all
Defined in:
lib/painter/line.rb

Instance Method Summary collapse

Methods inherited from Operation

#_angle, #_color, #angle, #color, #initialize, pretty_accessor

Constructor Details

This class inherits a constructor from Painter::Operation

Instance Method Details

#drawObject



3
4
5
6
# File 'lib/painter/line.rb', line 3

def draw
  ::Painter::CGD2::gdImageLine(@image.image_pointer,
    @_from.x, @_from.y, @_to.x, @_to.y, _color.rgba)
end