我的代码出不来后面的文字呀
我的代码出不来后面的文字呀
function drawballs(cxt){
var canvas = cxt.canvas;
cxt.clearRect(0,0,canvas.width,canvas.height);
cxt.save();
cxt.beginPath();
cxt.fillStyle = "black";
cxt.fillRect(0,0,canvas.width,canvas.height);
cxt.beginPath();
cxt.arc(balls.x,balls.y,balls.radius,0,2*Math.PI);
cxt.fillStyle = "#fff";
cxt.fill();
cxt.clip();
cxt.font = "bold 150px Arial";
cxt.textAlign = "center";
cxt.textBaseline = "middle";
cxt.fillStyle = "#058";
cxt.fillText("CANVAS",canvas.width / 2,canvas.height / 4);
cxt.fillText("CANVAS",canvas.width / 2,canvas.height / 2);
cxt.fillText("CANVAS",canvas.width / 2,canvas.height*3/4);
cxt.restore();
}