load "ppm.rb" b = load_ppm("nautical.ppm") plot(b) plot(b,2) |
Knowing that an image is an array of rows, write a function flip_image! that flips an image upside-down and plots the result. (Hint: remember the reverse! method.) Try flipping the nautical alphabet image upside-down.b.size b[0].size b[0][0] b[100][100]