readCurrentPixels method
Implementation
Uint8List readCurrentPixels(int x, int y, int width, int height) {
int _len = width * height * 4;
var buffer = Uint8List(_len);
gl.readPixels(x, y, width, height, WebGL.RGBA, WebGL.UNSIGNED_BYTE, buffer);
return buffer;
}