摘要:
源码 //获取到舞台varcanvas=document.getElementById("stage");//舞台2d绘图接口varcontext=canvas.getContext("2d");//获取中心点置varcenterX=canvas.width/2;varcenterY=canvas.height/2;/***Led灯*/varLight=function(x,y,radius,color){//灯中心点位置this.x=x;this.y=y;//灯的半径this.radius=radius;//灯的颜色this.color=color;/ 阅读全文