Skip to content

region

Create a drawing region that clips a process. Assign it to self.region. Available as region after import_globals() or mv.graphics.region.

Parameters

  • x — Left edge in window pixels.
  • y — Top edge in window pixels.
  • width — A positive width.
  • height — A positive height.
self.region = region(40, 60, 300, 240)

Related: scroll.

See the drawing guide for more examples and limits.