Class: Painter::Line
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
#draw ⇒ Object
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 |