Skip to main content

DrawRect

Callable

  • DrawRect(Left: number, Top: number, Width: number, Height: number, Color: string): void

  • Draws a basic rectangle filled with a given color


    Parameters

    • Left: number

      Position of the rectangle from the left of the canvas

    • Top: number

      Position of the rectangle from the top of the canvas

    • Width: number

      Width of the rectangle

    • Height: number

      Height of the rectangle

    • Color: string

      Color of the rectangle

    Returns void

    • Nothing