Skip to content

draw_rect

Draw a rectangle outline between two corners.

Parameters

  • x1 — Left edge.
  • y1 — Top edge.
  • x2 — Right edge.
  • y2 — Bottom edge.
draw_rect(20, 20, 120, 80)

Related: draw_box, set_color.

See the drawing guide for more examples and limits.