No problem - by default g.buffer is an untyped arraybuffer, so ideally you make it into something typed:
var g = Graphics.createArrayBuffer(8,8,1);
var a = new Uint8Array(g.buffer);
// you can still change 'g' and the values in 'a' will change too
© Espruino, powered by microcosm.
Report a problem