摘要: 1 var canvas = document.getElementById('canvas'), ctx = canvas.getContext('2d'); 2 var start = 1, end = 256, step = 30, direction = 'right'; 3 var len = end - start + 1, wLen = 1, hLen = 1, flag = 1; 4 var sideLength = Math.ceil(Math.sqrt(len)); // 总数求边长 5 var currentX = step 阅读全文
posted @ 2013-10-31 15:40 风之约 阅读(434) 评论(0) 推荐(0) 编辑