*** viewport is now used by javascript use the var name vp instead ***
Ok lets have a look at the code.
It's the previous mandelbrot renderer. It has a slight difference. Notice that a new array has been created called dat. It is a typed array of type Int32. It is "attached" to the ImageData object called viewport. Specifically the viewport.data.buffer object. When you write to the new array the viewport array is updated. Also notice that there is less code to write!
Works on FireFox.
Works on Internet Explorer.
Works on Google Chrome.
Works on Android.
No comments:
Post a Comment