UI module

inset

procedure · 1 overloadsince 0.31.0Source

rect shrunk by amount on every side.

inset :: (rect: Rect, amount: float) -> Rect

rect shrunk by amount on every side.

Parameters

rect: Rect
the rectangle to shrink.
amount: float
how far to move each edge in. The size stops at zero instead of going negative.

Returns

See also