setPixelAt method
Set the RGB pixel at the given coordinate.
The origin is the top left corner. Indices are zero-based.
Implementation
void setPixelAt(int x, int y, Rgb565 pixel) {
(x, y) = (y, x);
final index = _memoryIndex(x, y);
buffer.setUint16(index * _bytesPerPixel, pixel.toInt(), endianness);
}