News for hackers. Stuff that matters.
Re:Grafi.js – JavaScript Image Processing Library by Kiro on Tuesday April 26, 2016 @04:39AM (#11570283)
What's the point of using Uint8ClampedArray instead of just a normal array?
Re:Grafi.js – JavaScript Image Processing Library by zschuessler on Tuesday April 26, 2016 @10:12AM (#11571997)
More than speed, it's easier working with the Uint8ClampedArray since the values correlate to RGB values (0-255). If it was a matter of speed only, the author would have used Uint32Array, which gets the speed benefit of typed arrays but allows for larger values (meaning smaller overall array size, but it's more complex to work with).

If you hop down to the annotated source, you can see Uint32Array used here:

http://zschuessler.github.io/DeltaE/demos/de76-chroma-key/

Re:Grafi.js – JavaScript Image Processing Library by onion2k on Tuesday April 26, 2016 @06:23AM (#11570671)
Re:Grafi.js – JavaScript Image Processing Library by imaginenore on Tuesday April 26, 2016 @07:19AM (#11570874)
asm.js