let canvas = document.getElementById("canvas");
let context = canvas.getContext("2d");
context.beginPath();
context.rect(point.x, point.y, width, height);
context.fill();
context.stroke();
function draw() {
var canvas = document.getElementById('canvas');
if (canvas.getContext) {
var ctx = canvas.getContext('2d');
ctx.fillRect(25, 25, 100, 100);
ctx.clearRect(45, 45, 60, 60);
ctx.strokeRect(50, 50, 50, 50);
}
}
function drawRectangle(point: Vector, width: number, height: number) {
this.context.beginPath();
this.context.rect(point.x, point.y, width, height);
this.context.fill();
this.context.stroke();
}