Class: Painter::Pixel

Inherits:
Operation show all
Defined in:
lib/painter/pixel.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/pixel.rb', line 3

def draw
  ::Painter::CGD2::gdImageSetPixel(@image.image_pointer,
    @_at.x, @_at.y, _color.rgba)
end