Rect.offset

graphene.rect.Rect offset(float dX, float dY)

Offsets the origin by d_x and d_y.

The size of the rectangle is unchanged.

Parameters

dXthe horizontal offset
dYthe vertical offset

Returns

the offset rectangle