Rect.offset

Offsets the origin by @d_x and @d_y.

The size of the rectangle is unchanged.

class Rect
offset
(
float dX
,
float dY
)

Parameters

dX float

the horizontal offset

dY float

the vertical offset

Return Value

Type: Rect

the offset rectangle

Meta