Class: Painter::Pixel
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/pixel.rb', line 3 def draw ::Painter::CGD2::gdImageSetPixel(@image.image_pointer, @_at.x, @_at.y, _color.rgba) end |