摘要: 今天需要在项目中用到一个时钟的效果图:初试canvas小实验,代码var canvas = document.getElementById('myCanvas') var context = canvas.getContext('2d')context.strokeRect(0,0,canvas.width,canvas.height)context.beginPath()context.arc(200,150,5,0,2*Math.PI,true)context.strokeStyle = '#00f'context.fillStyle = & 阅读全文
posted @ 2012-03-11 21:14 xiaoxiaohui 阅读(293) 评论(0) 推荐(0) 编辑