Re:Binary in JavaScript
by tantalor on Tuesday July 28, 2015 @10:23PM
(#9965884)
What's more, when your data is in a TypedArray, you can upload the whole thing to a texture with a single call to WebGLRenderingContext#texImage2D.
[ Parent
| on HN ]
Canvas supports a similiar method: getImageData returns a Uint8ClampedArray, putImageData stores it back into the context.
https://developer.mozilla.org/en-US/docs/Web/API/Canvas_API/...