Anonymous user
Raster graphics operations/Ruby: Difference between revisions
Raster graphics operations/Ruby (view source)
Revision as of 19:11, 14 September 2009
, 14 years ago→The Code: add each_pixel iterator
(accumulate Ruby's Raster graphics operations code) |
m (→The Code: add each_pixel iterator) |
||
Line 113:
end
alias_method :set_pixel, :[]=
def each_pixel
@height.times {|y| @width.times {|x| yield x,y}}
end
###############################################
|