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