rect.translate(tx [, ty])
Translate the rectangle by tx
on the x-axis and ty
on the y-axis.
If only tx
is specified and is a number, ty
is considered to be zero. If only tx
is specified and is an object, it is considered to be a point or an object in the form { x: [number], y: [number] }