I'm new at canvas an am trying to make a game fullscreen and more importantly responsive to smaller screens but my shapes come out fuzzy as like they've been zoomed in on this is my css and two JavaScript functions
canvas {
background: green;
width: 100%;
height: 100%;
}
//this function draws
function drawEverything() {
colorRect(0, 0, canvas.width, canvas.height, '#C9EEF3', "Main");
colorRect(50,0,150, 35, "red","firstRow");
}
// this function gives the layout of the rectangels
function colorRect(leftX, topY, width, height, drawColor, tag) {
canvasContext.fillStyle = drawColor;
canvasContext.fillRect(leftX, topY, width, height);
}