Rect.offsetR

Offsets the origin of the given rectangle by d_x and d_y.

The size of the rectangle is left unchanged.

class Rect
void
offsetR
(
float dX
,
float dY
,)

Parameters

dX float

the horizontal offset

dY float

the vertical offset

res graphene.rect.Rect

return location for the offset rectangle