Set the coordinates of the pixel.
@override void setPosition(int x, int y) { _x = x; _y = y; _index = y * image.width * image.numChannels + (x * image.numChannels); }