CanvasContext.rect(number x, number y, number width, number height)

    矩形路径左上角的横坐标

    矩形路径的宽度

    示例代码