Added canvas context initialisation.
authorEugen Sawin <sawine@me73.com>
Sun, 04 Jul 2010 01:14:52 +0200
changeset 12c0e74abb2a26
parent 11 139a26267e12
child 13 e6eb1311a49c
Added canvas context initialisation.
script.js
     1.1 --- a/script.js	Sun Jul 04 01:12:52 2010 +0200
     1.2 +++ b/script.js	Sun Jul 04 01:14:52 2010 +0200
     1.3 @@ -198,6 +198,7 @@
     1.4  	var canvas = document.getElementById('mandelbrot');  
     1.5  	if (canvas.getContext)
     1.6  	{  
     1.7 +		var ctx = canvas.getContext('2d');
     1.8  		z = z / 10.0;
     1.9  		zoom += z;
    1.10  		if (zoom < 1)