drawing rectangle javascript canvas code example
Example: javascript rect
// canvas context.fillRect(x, y, width, height);
ctx.fillRect(20, 20, 150, 100);
// canvas context.fillRect(x, y, width, height);
ctx.fillRect(20, 20, 150, 100);