Skip to content

format

typescript
Rect.Scale(scale_x, scale_y)

class: Rect

description

Scale the rectangle.

parameter

param_nametypedescription
scale_xnumberThe multiplication of x and width.
scale_ynumberThe multiplication of y and height.

reture

typedescription
void

code example