# Sets an individual pixel, where position (0, 0) represents the top-left pixel.
fun set_pixel(x: Int, y: Int, color: Int)
do
if x >= 0 and y >= 0 and x < self.width and y < self.height then
# Since a bitmap stores its rows of pixels upside-down, y is mapped to
# height - 1 - y to make (0, 0) the top-left pixel
self.data[self.height - 1 - y][x] = color
end
end
lib/bitmap/bitmap.nit:253,2--261,4