Sets the x attribute of the rectangle, which defines the x-coordinate of the rectangle's top-left corner.
x
The x-coordinate value.