rect shrunk by amount on every side.
- rect: the rectangle to shrink.
- amount: how far to move each edge in. The size stops at zero instead of going negative.
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.