Method: Processing::Image#set
- Defined in:
- lib/processing/image.rb
#set(x, y, c) ⇒ nil
Sets the color of the pixel.
63 64 65 66 |
# File 'lib/processing/image.rb', line 63 def set(x, y, c) getInternal__.bitmap(true)[x, y] = self.class.fromColor__(c).map {|n| n / 255.0} nil end |