All Manuals > CAPI User Guide and Reference Manual > 22 GRAPHICS-PORTS Reference Entries

inset-rectangle Function

Summary

Moves the corners of a rectangle inwards by a given amount.

Package

graphics-ports

Signature

inset-rectangle rectangle dx dy &optional dx-right dy-bottom

Arguments
rectangle
A list of integers.
dx
An integer.
dy
An integer.
dx-right
An integer.
dy-bottom
An integer.
Description

The function inset-rectangle moves the left, top, right and bottom elements of rectangle inwards towards the center by the distances dx, dy, dx-right and dy-bottom respectively.

By default, dx-right is dx, and dy-bottom is dy.


CAPI User Guide and Reference Manual (Windows version) - 01 Dec 2021 19:34:15