You are reading a single comment by @Gordon and its replies. Click here to read the full conversation.
  • 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

Avatar for Gordon @Gordon started