摘要: Context.beginPath(); Context.arc(x,y,radius,startAngle,endAngle,anticlockwise);(for循环圆心、半径) Context.closePath(); Context.fillStyle=’rgba(255,0,0,0.25) 阅读全文
posted @ 2016-09-05 22:46 李大白程序员 阅读(3291) 评论(0) 推荐(0) 编辑
摘要: 绘制步骤 获取canvas对象 var oCanvas = document.getElementById("canvas"); 取得上下文context var context = oCanvas.getContext("2d"); 绘制图形 根据需求选择方法 绘制长方形/边框/填充色彩 Cont 阅读全文
posted @ 2016-09-05 22:44 李大白程序员 阅读(602) 评论(0) 推荐(0) 编辑