interface CanvasRect { clearRect(x: number,
y: number,
w: number,
h: number): void; fillRect(x: number,
y: number,
w: number,
h: number): void; strokeRect(x: number,
y: number,
w: number,
h: number): void; } Methods
clearRect
- clearRect(x, y, w, h): void
Parameters
- x: number
- y: number
- w: number
- h: number
Returns void
fillRect
- fillRect(x, y, w, h): void
Parameters
- x: number
- y: number
- w: number
- h: number
Returns void
strokeRect
- strokeRect(x, y, w, h): void
Parameters
- x: number
- y: number
- w: number
- h: number
Returns void
MDN Reference