MCPcopy Create free account
hub / github.com/Vishal-raj-1/Awesome-JavaScript-Projects / drawBall

Function drawBall

assets/js/breakout.js:98–104  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

96}
97
98function drawBall() {
99ctx.beginPath();
100ctx.arc(x, y, ballRadius, 0, Math.PI*2);
101ctx.fillStyle = grd;
102ctx.fill();
103ctx.closePath();
104}
105function drawPaddle() {
106ctx.beginPath();
107ctx.rect(paddleX, canvas.height-paddleHeight, paddleWidth, paddleHeight);

Callers 1

drawFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected