Set the pixel at the given x, y coordinate to the color. No range checking is done.
x
y
color
void setPixel(int x, int y, int color) { data[y * width + x] = color; }