class ChunkyPNG::Canvas

def replace_row!(y, vector)

Returns:
  • (void) -

Parameters:
  • vector (Array) -- The vector of pixels to replace the row
  • y (Integer) -- The 0-based row index.
def replace_row!(y, vector)
  assert_y!(y) && assert_width!(vector.length)
  pixels[y * width, width] = vector
end