Set a pixel in the buffer. No range checking is done.
void operator []=(int index, int color) { data[index] = color; }