document.getElementById("canvas");
var ctx = canvas.getContext("2d");
var q = 0;
document.addEventListener("onmousedown", function (e){
q = 1;
});
function draw(){
if(q == 0){
ctx.fillStyle = "yellow"
ctx.fillRect(0, 0, 355, 366);
}
}
setInterval(draw, 20);