Rectangle.setSize()

Set this rectangle with position and size given as parameter

Parameters

NameTypeDescription
1sizeXnumber
2sizeYnumber

Return value

Rectangle

the rectangle with its new values

Usage