Rect.addOffset

Function/Meaning
Offset rectangle position
Type
Method of Rect class
Syntax
addOffset(x, y)
Arguments
x Specifies the horizontal offset amount for the rectangle.
y Specifies the vertical offset amount for the rectangle.
Return Value
None (void)
Description
Moves the rectangle position.
The rectangle moves by the specified x and y values.