(){
.();
(= ; < ; ++) { //ballNum = 10
.();
.= [].;
.([].,[].,[].,,*.);
.();
.();
}
.();
}
(i){
.=;
.=;
.= ;
.= ;
.(,[i].,[i].);
}
3 回答
星空下的小孩
TA贡献13条经验 获得超3个赞
for (var i = 0; i < 10; i++) { context3.beginPath(); context3.fillStyle = balls[i].color; context3.arc(balls[i].x,balls[i].y,balls[i].r,0,2*Math.PI); context3.fill(); //context3.closePath(); context3.clip(); context3.beginPath(); context3.font='20px Arial Narrow'; context3.textAlign ='center'; context3.textBaseline = 'middle'; context3.strokeStyle = '#fff'; context3.strokeText('123',balls[i].x,balls[i].y); }
添加回答
举报
0/150
提交
取消