class ChunkyPNG::Canvas
def column(x)
-
(Array
- The vector of pixels in the requested column.)
Parameters:
-
x
(Integer
) -- The 0-based column index.
def column(x) assert_x!(x) (0...height).inject([]) { |pixels, y| pixels << get_pixel(x, y) } end