setWidth()
Set the object's width.
rectangle.setWidth(width)
Parameters
rectangle.setWidth(width)
| Parameter | Type | Default | Description |
|---|---|---|---|
width |
int or float |
required | The new width, in pixels. |
Set the object's width.
rectangle.setWidth(width)
rectangle.setWidth(width)
| Parameter | Type | Default | Description |
|---|---|---|---|
width |
int or float |
required | The new width, in pixels. |