size(width, [height])

Class: Ellipse.

Description:

Sets or gets the size of the Ellipse (horizontal and vertical diameter).

Parameters:

Name Type Description

width

number | Size

Width of the ellipse (horizontal diameter), or a Size object (e.g., {width:300,height:300}).

[height]

number

Height of the ellipse (vertical diameter).

Returns:

If called without parameters, current size is returned; otherwise this Ellipse object is returned.

Type: Size | Ellipse

Also See: