Skip to content

setWidth()

Set the object's width.

Parameters

Once an object item has been created, you can use the following function:

item.setWidth(width)
Parameter Type Default Description
width int or float required The new width, in pixels.