class ChunkyPNG::Canvas

def row(y)

Returns:
  • (Array) - The vector of pixels in the requested row

Parameters:
  • y (Integer) -- The 0-based row index
def row(y)
  assert_y!(y)
  pixels.slice(y * width, width)
end