class ChunkyPNG::Canvas

def set_pixel(x, y, color)

Returns:
  • (Integer) - The new color value for this pixel, i.e.

Parameters:
  • color (Integer) -- The new color for the provided coordinates.
  • y (Integer) -- The y-coordinate of the pixel (row)
  • x (Integer) -- The x-coordinate of the pixel (column)
def set_pixel(x, y, color)
  @pixels[y * width + x] = color
end