inset

fun Circle.inset(inset: Double): Circle

Return

a Circle with the same attributes as this, but with the radius shortened by inset.

Parameters

inset

to shorten radius by


fun Ellipse.inset(insetX: Double, insetY: Double = insetX): Ellipse

Return

an Ellipse with the same attributes as this, but with xRadius and yRadius shortened by insetX and insetY respectively.

Parameters

insetX

to shorten xRadius by

insetY

to shorten yRadius by


fun Rectangle.inset(top: Double = 0.0, left: Double = 0.0, right: Double = 0.0, bottom: Double = 0.0): Rectangle

Rectangle that has been adjusted as follows [x + left, y + top, w - (left + right), h - (top + bottom)].

Return

adjusted Rectangle

Parameters

top

amount to adjust on the top

left

amount to adjust on the left

right

amount to adjust on the right

bottom

amount to adjust on the bottom