Interface RectContext

An interface for the rect() method of the CanvasPathMethods API.

interface RectContext {
    rect(x, y, width, height): void;
}

Methods

Methods

  • rect() method of the CanvasPathMethods API.

    Parameters

    • x: number
    • y: number
    • width: number
    • height: number

    Returns void