MCPcopy
hub / github.com/Vishal-raj-1/Awesome-JavaScript-Projects / drawPaddle

Function drawPaddle

assets/js/pingpong.js:92–95  ·  view source on GitHub ↗
(x, y, width, height, color)

Source from the content-addressed store, hash-verified

90
91// function to draw paddle
92function drawPaddle(x, y, width, height, color) {
93 ctx.fillStyle = color;
94 ctx.fillRect(x, y, width, height);
95}
96
97// function to draw ball
98function drawBall(x, y, radius, color) {

Callers 1

renderFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected