Jump to content

Raster graphics operations/Ruby: Difference between revisions

m
→‎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
 
###############################################
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.