Commits

Slava Bacherikov committed d8b9071

Add comment

Comments (0)

Files changed (1)

lesson1/index.html

                 var height = ctx.canvas.height,
                     width = ctx.canvas.width,
                     base_angle = Math.PI/4,
-                    k = Math.sqrt(2)/2;
+                    k = 1/Math.sqrt(2); // Math.sqrt(2)/2 or Math.sin(Math.PI/4)
 
                 function draw_r(x, y, size, angle, num){
                     ctx.save();