let canvas = document.getElementById("canvas"); let context = canvas.getContext("2d"); context.beginPath(); context.rect(point.x, point.y, width, height); context.fill(); context.stroke();