Skip to content

draw_box

Draw a filled rectangle between two corners. Call it inside a process.

Parameters

  • x1 — Left edge.
  • y1 — Top edge.
  • x2 — Right edge.
  • y2 — Bottom edge.
set_color(60, 160, 255)
draw_box(20, 20, 120, 80)

Related: draw_rect, set_color.

See the drawing guide for more examples and limits.