operator []= method

void operator []=(
  1. int index,
  2. int color
)

Set a pixel in the buffer. No range checking is done.

Implementation

void operator []=(int index, int color) {
  data[index] = color;
}