Saturday, July 4, 2015

Pixel Animation

 *** viewport is used by javascript, use the var name vp instead ***

Was trying to animate the mandelbrot set and it just wouldn't work. Turned on the debugger and found that the var screen was undefined. Replaced it with the word viewport and voila!

Notice I have moved all the canvas variables into global scope. This way the canvas and buffer stays "alive" throughout the life of the application.
After a few seconds the renderer has zoomed in on this.

No comments:

Post a Comment